Sage Modeling and Simulation Library

ModelObjectDictionary Constructor (Boolean)

ModelObjectDictionary is a dictionary that keeps references to all ModelObjects and can retrieve those references based on the ModelObjects' Guids. It fires an event when asked to retrieve an object that it does not have already stored.

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)


public ModelObjectDictionary(
	bool retainHardReference


Type: Boolean
if set to true the dictionary uses a Hashtable instead of a WeakHashtable. This means that this dictionary can be used to maintain connections to the objects it contains, but it also means that the developer is responsible for explicitly removing objects from this dictionaary if they are no longer desired.