Add the contents from the source dictionary.
public void Clear()
Removes all keys and values from the dictionary.
Constructs a deep copy of this object.
Returns: The copy of this object.
Determines whether the dictionary contains the specified key.
Parameters:| key (string) | The key to locate. |
Returns: true if the dictionary contains an element with the specified key; otherwise, false.
Get value as Boolean, will return defaultValue unless value was created using Set(string key, Boolean value)
Get value as Boolean, will only succeed if value was created using Set(string key, Boolean value)
Get value as byte[], will return defaultValue unless value was created using Set(string key, byte[] value)
Get value as byte[], will only succeed if value was created using Set(string key, byte[] value)
Get value as ArchivableDictionary, will return defaultValue unless value was created using Set(string key, ArchivableDictionary value)
Get value as ArchivableDictionary, will only succeed if value was created using Set(string key, ArchivableDictionary value)
Get value as double, will only succeed if value was created using Set(string key, double value)
Get value as double, will only succeed if value was created using Set(string key, double value)
Gets the enumerator of this dictionary.
Returns: A
IEnumerator<T>, where T is an instance of
KeyValuePair<T0, T1>, with T0 set as string, and T1 as System.Object.
Get an enum value
Exceptions:| KeyNotFoundException | Thrown when the key is not found in the dictionary. |
| FormatException | Thrown when the string retrieved from the dictionary is not convertible to the enum type. |
Get an enum value from the dictionary using a custom key.
Exceptions:| KeyNotFoundException | Thrown when the key is not found in the dictionary. |
| FormatException | Thrown when the string retrieved from the dictionary is not convertible to the enum type. |
Get value as float, will return defaultValue unless value was created using Set(string key, float value)
Get value as float, will only succeed if value was created using Set(string key, float value)
Get value as Guid, will return defaultValue unless value was created using Set(string key, Guid value)
Get value as Guid, will only succeed if value was created using Set(string key, Guid value)
Get value as int, will return defaultValue unless value was created using Set(string key, int value)
Get value as int, will return defaultValue unless value was created using Set(string key, int value)
Get value as int, will only succeed if value was created using Set(string key, int value)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Parameters:| info (SerializationInfo) | The System.Runtime.Serialization.SerializationInfo to populate with data. |
| context (StreamingContext) | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Get value as Plane, will return defaultValue unless value was created using Set(string key, Plane value)
Parameters:| key (string) | The key. |
| defaultValue (Plane) | The default value. |
Returns: The value as Plane.
Get value as Plane, will return defaultValue unless value was created using Set(string key, Plane value)
Returns: The value as Plane.
Get value as Point3d, will return defaultValue unless value was created using Set(string key, Point3d value)
Get value as Point3d, will only succeed if value was created using Set(string key, Point3d value)
Get value as Point3f, will return defaultValue unless value was created using Set(string key, Point3f value)
Get value as Point3f, will only succeed if value was created using Set(string key, Point3f value)
Get value as string, will return defaultValue unless value was created using Set(string key, string value)
Parameters:| key (string) | The key which points to the string |
| defaultValue (string) | The string |
Get value as string, will only succeed if value was created using Set(string key, string value)
Parameters:| key (string) | The key which points to the string |
Returns: The string
Get value as Vector3d, will return defaultValue unless value was created using Set(string key, Vector3d value)
Get value as Vector3d, will only succeed if value was created using Set(string key, Vector3d value)
Removes the value with the specified key from the dictionary.
Parameters:| key (string) | The key of the element to remove. |
Returns: true if the element is successfully found and removed; otherwise, false. This method returns false if key is not found.
Remove an enum value from the dictionary.
Replace the contents of the dictionary with that of the given source dictionary.
Parameters:| key (string) | A text key. |
| val (ArchivableDictionary) | An object for that key. Because this class is a reference type and is mutable, changes to this object will propagate to the object inside the dictionary. It is up to the user to clone this entry when appropriate. |
Parameters:| key (string) | The text key. |
| val (bool) | A bool value. Because bool has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (BoundingBox) | A value for that key. Because BoundingBox has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | The text key. |
| val (byte) | A byte. Because byte has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (Color) | A value for that key. Because Color has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | The text key. |
| val (double) | A double. Because double has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | The text key. |
| val (float) | A float. Because float has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (Font) | A value for that key. Because Font is immutable, it is not possible to modify the object while it is in this dictionary. |
Parameters:| key (string) | A text key. |
| val (GeometryBase) | A geometry object for that key. Because this class is a reference type and is mutable, changes to this object will propagate to the object inside the dictionary. It is up to the user to clone this entry when appropriate. You can use GeometryBase.Duplicate() for this. |
Parameters:| key (string) | The text key. |
| val (Guid) | A Guid. Because Guid has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
bool.
Parameters:| key (string) | A text key. |
| val (IEnumerable<bool>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
byte.
Parameters:| key (string) | A text key. |
| val (IEnumerable<byte>) | A value for that key Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
double.
Parameters:| key (string) | A text key. |
| val (IEnumerable<double>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
float.
Parameters:| key (string) | A text key. |
| val (IEnumerable<float>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key |
| val (IEnumerable<GeometryBase>) | An object for that key Because this class is a reference type and is mutable, changes to this object will propagate to the object inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if successful, false otherwise.
Sets a list, an array or any enumerable of
Guid.
Parameters:| key (string) | A text key. |
| val (IEnumerable<Guid>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
int.
Parameters:| key (string) | A text key. |
| val (IEnumerable<int>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key |
| val (IEnumerable<ObjRef>) | An object for that key Because this class is a reference type and is mutable, changes to this object will propagate to the object inside the dictionary. It is up to the user to clone this entry when appropriate. |
Sets a list, an array or any enumerable of
sbyte.
Parameters:| key (string) | A text key. |
| val (IEnumerable<sbyte>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
short.
Parameters:| key (string) | A text key. |
| val (IEnumerable<short>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Sets a list, an array or any enumerable of
string.
Parameters:| key (string) | A text key. |
| val (IEnumerable<string>) | A value for that key. Because this interface is a reference type, changes to the assigned object will modify this entry inside the dictionary. It is up to the user to clone this entry when appropriate. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | The text key. |
| val (int) | A int. Because int has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (Interval) | A value for that key. Because Interval has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Line) | A value for that key. Because Line has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | The text key. |
| val (long) | A long. Because long has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (MeshingParameters) | An object for that key. Because this class is a reference type and is mutable, changes to this object will propagate to the object inside the dictionary. It is up to the user to clone this entry when appropriate. |
Parameters:| key (string) | A text key |
| val (ObjRef) | An object for that key Because this class is a reference type and is mutable, changes to this object will propagate to the object inside the dictionary. It is up to the user to clone this entry when appropriate. |
Parameters:| key (string) | A text key. |
| val (Plane) | A plane for that key. Because Plane has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Point) | A value for that key. Because Point has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Point2d) | A point for that key. Because Point2d has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Point3d) | A point for that key. Because Point3d has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Point3f) | A value for that key. Because Point3f has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Point4d) | A value for that key. Because Point4d has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (PointF) | A value for that key. Because PointF has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Ray3d) | A value for that key. Because Ray3d has value semantics and is immutable, no changes to this object are possible. |
Parameters:| key (string) | A text key. |
| val (Rectangle) | A value for that key. Because Rectangle has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (RectangleF) | A value for that key. Because RectangleF has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | The text key. |
| val (sbyte) | A sbyte. Because sbyte has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | The text key. |
| val (short) | A short. Because short has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (Size) | A value for that key. Because Size has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (SizeF) | A value for that key. Because SizeF has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | The text key. |
| val (string) | A string. Because string is immutable, it is not possible to modify the object while it is in this dictionary. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | The text key. |
| val (uint) | A uint. Because uint has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | The text key. |
| val (ushort) | A ushort. Because ushort has value semantics, changes to the assigning value will leave this entry unchanged. |
Returns: true if set operation succeeded, otherwise false.
Parameters:| key (string) | A text key. |
| val (Vector2d) | A value for that key. Because Vector2d has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Vector3d) | A value for that key. Because Vector3d has value semantics, changes to the assigning value will leave this entry unchanged. |
Parameters:| key (string) | A text key. |
| val (Vector3f) | A value for that key. Because Vector3f has value semantics, changes to the assigning value will leave this entry unchanged. |
Set an enum value in the dictionary with a custom key.
Gets the enumerator of this dictionary.
Returns: A
IEnumerator<T>, where T is an instance of
KeyValuePair<T0, T1>, with T0 set as string, and T1 as System.Object.
Get value as Boolean, will only succeed if value was created using Set(string key, Boolean value)
Get value as byte[], will only succeed if value was created using Set(string key, byte[] value)
Get value as ArchivableDictionary, will only succeed if value was created using Set(string key, ArchivableDictionary value)
Get value as double, will only succeed if value was created using Set(string key, double value)
Attempt to get an enum value from the dictionary using a custom key.
Get value as float, will only succeed if value was created using Set(string key, float value)
Get value as Guid, will only succeed if value was created using Set(string key, Guid value)
Get value as int, will only succeed if value was created using Set(string key, int value)
Get value as Plane, will only succeed if value was created using Set(string key, Plane value)
Returns: The value as Plane.
Get value as Point3d, will only succeed if value was created using Set(string key, Point3d value)
Get value as Point3f, will only succeed if value was created using Set(string key, Point3f value)
Get value as string, will only succeed if value was created using Set(string key, string value)
Gets the value associated with the specified key.
Parameters:| key (string) | The key of the value to get. |
| value (out object) | When this method returns and if the key is found, contains the value associated with the specified key; otherwise, null. This parameter is passed uninitialized. |
Returns: true if the dictionary contains an element with the specified key; otherwise, false.
Get value as Vector3d, will only succeed if value was created using Set(string key, Vector3d value)