ArchivableDictionary

References

Represents a dictionary class that can be attached to objects and can be serialized (saved) at necessity.

See remarks for layout.

Remarks:

This is the layout of this object:

BEGINCHUNK (TCODE_ANONYMOUS_CHUNK)
|- version (int)
|- entry count (int)
   for entry count entries
   |- BEGINCHUNK (TCODE_ANONYMOUS_CHUNK)
   |- key (string)
   |- entry contents
   |- ENDCHUNK (TCODE_ANONYMOUS_CHUNK)
ENDCHUNK (TCODE_ANONYMOUS_CHUNK)

Constructors

ArchivableDictionary

#Since v5.0
public ArchivableDictionary()
Initializes an instance of a dictionary for writing to a 3dm archive.

ArchivableDictionary

#Since v5.0
public ArchivableDictionary(int version, string name)
Initializes an instance of a dictionary for writing to a 3dm archive.
version (int)custom version used to help the plug-in developer determine which version of a dictionary is being written. One good way to write version information is to use a date style integer (YYYYMMDD)
name (string)Optional name to associate with this dictionary. NOTE: if this dictionary is set as a sub-dictionary, the name will be changed to the sub-dictionary key entry

ArchivableDictionary

#Since v5.0
public ArchivableDictionary(int version)
Initializes an instance of a dictionary for writing to a 3dm archive.
version (int)Custom version used to help the plug-in developer determine which version of a dictionary is being written. One good way to write version information is to use a date style integer (YYYYMMDD)

ArchivableDictionary

#
protected ArchivableDictionary(SerializationInfo info, StreamingContext context)
Protected constructor for internal use.
info (SerializationInfo)Serialization data.
context (StreamingContext)Serialization stream.

ArchivableDictionary

#Since v5.0
public ArchivableDictionary(UserData parentUserData)
Initializes an instance of a dictionary for writing to a 3dm archive
parentUserData (UserData)parent user data if this dictionary is associated with user data

Properties

ChangeSerialNumber

#Since v7.8
[CLSCompliant(false)] public uint ChangeSerialNumber { get; }
Retrieve current change serial number. This is a number that gets increased each time a datum is set or changed.

Count

#Since v5.0
public int Count { get; }
Gets the number of key/value pairs contained in the dictionary.

Keys

#Since v5.0
public string[] Keys { get; }
Gets all entry names or keys.

Name

#Since v5.0
public string Name { get; set; }
Gets or sets the name string of this ArchivableDictionary.

ParentUserData

#Since v5.0
public UserData ParentUserData { get; }
If this dictionary is part of user-data (or is a UserDictionary), then this is the parent user data. null if this dictionary is not part of user-data
Explicit

IDictionary<string, object>.Values

#Since v5.0

Values

#Since v5.0
public object[] Values { get; }
Gets all values in this dictionary.

Version

#Since v5.0
public int Version { get; set; }
Gets or sets the version of this ArchivableDictionary.

Indexers

Explicit

IDictionary<string, object>.this[]

#
key (string)

this[]

#
public object this[string key] { get; set; }
Gets the value associated with the specified key.
key (string)The key of the value to get or set.
The value associated with the specified key. If the specified key is not found, a get operation throws a KeyNotFoundException.
ArgumentNullExceptionIf the key is null.
KeyNotFoundExceptionIf the key is not found.

Methods

AddContentsFrom

#Since v5.4
public bool AddContentsFrom(ArchivableDictionary source)
Add the contents from the source dictionary.
source (ArchivableDictionary)

Clear

#Since v5.0
public void Clear()
Removes all keys and values from the dictionary.

Clone

#Since v5.0
public ArchivableDictionary Clone()
Constructs a deep copy of this object.
The copy of this object.

ContainsKey

#Since v5.0
public bool ContainsKey(string key)
Determines whether the dictionary contains the specified key.
key (string)The key to locate.
true if the dictionary contains an element with the specified key; otherwise, false.
ArgumentNullExceptionkey is null.

GetBool

#Since v5.0
public bool GetBool(string key, bool defaultValue)
Get value as Boolean, will return defaultValue unless value was created using Set(string key, Boolean value)
key (string)
defaultValue (bool)

GetBool

#Since v5.0
public bool GetBool(string key)
Get value as Boolean, will only succeed if value was created using Set(string key, Boolean value)
key (string)

GetBytes

#Since v5.9
public byte[] GetBytes(string key, byte[] defaultValue)
Get value as byte[], will return defaultValue unless value was created using Set(string key, byte[] value)
key (string)
defaultValue (byte[])

GetBytes

#Since v5.9
public byte[] GetBytes(string key)
Get value as byte[], will only succeed if value was created using Set(string key, byte[] value)
key (string)

GetDictionary

#Since v5.9
public ArchivableDictionary GetDictionary(string key, ArchivableDictionary defaultValue)
Get value as ArchivableDictionary, will return defaultValue unless value was created using Set(string key, ArchivableDictionary value)
key (string)
defaultValue (ArchivableDictionary)

GetDictionary

#Since v5.9
public ArchivableDictionary GetDictionary(string key)
Get value as ArchivableDictionary, will only succeed if value was created using Set(string key, ArchivableDictionary value)
key (string)

GetDouble

#Since v5.10
public double GetDouble(string key, double defaultValue)
Get value as double, will only succeed if value was created using Set(string key, double value)
key (string)
defaultValue (double)

GetDouble

#Since v5.0
public double GetDouble(string key)
Get value as double, will only succeed if value was created using Set(string key, double value)
key (string)

GetEnumerator

#Since v5.0
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Gets the enumerator of this dictionary.
A IEnumerator<T>, where T is an instance of KeyValuePair<T0, T1>, with T0 set as string, and T1 as System.Object.

GetEnumValue<T>

#Since v5.4
[CLSCompliant(false)] public T GetEnumValue<T>()
Get an enum value
KeyNotFoundExceptionThrown when the key is not found in the dictionary.
FormatExceptionThrown when the string retrieved from the dictionary is not convertible to the enum type.

GetEnumValue<T>

#Since v5.4
[CLSCompliant(false)] public T GetEnumValue<T>(string key)
Get an enum value from the dictionary using a custom key.
key (string)
KeyNotFoundExceptionThrown when the key is not found in the dictionary.
FormatExceptionThrown when the string retrieved from the dictionary is not convertible to the enum type.

GetFloat

#Since v5.0
public float GetFloat(string key, float defaultValue)
Get value as float, will return defaultValue unless value was created using Set(string key, float value)
key (string)
defaultValue (float)

GetFloat

#Since v5.0
public float GetFloat(string key)
Get value as float, will only succeed if value was created using Set(string key, float value)
key (string)

GetGuid

#Since v5.0
public Guid GetGuid(string key, Guid defaultValue)
Get value as Guid, will return defaultValue unless value was created using Set(string key, Guid value)
key (string)
defaultValue (Guid)

GetGuid

#Since v5.0
public Guid GetGuid(string key)
Get value as Guid, will only succeed if value was created using Set(string key, Guid value)
key (string)

Getint

#Since v5.0
public int Getint(string key, int defaultValue)
Get value as int, will return defaultValue unless value was created using Set(string key, int value)
key (string)
defaultValue (int)

GetInteger

#Since v5.0
public int GetInteger(string key, int defaultValue)
Get value as int, will return defaultValue unless value was created using Set(string key, int value)
key (string)
defaultValue (int)

GetInteger

#Since v5.0
public int GetInteger(string key)
Get value as int, will only succeed if value was created using Set(string key, int value)
key (string)

GetObjectData

#Since v7.0
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
info (SerializationInfo)The System.Runtime.Serialization.SerializationInfo to populate with data.
context (StreamingContext)The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

GetPlane

#Since v6.11
public Plane GetPlane(string key, Plane defaultValue)
Get value as Plane, will return defaultValue unless value was created using Set(string key, Plane value)
key (string)The key.
defaultValue (Plane)The default value.
The value as Plane.

GetPlane

#Since v6.11
public Plane GetPlane(string key)
Get value as Plane, will return defaultValue unless value was created using Set(string key, Plane value)
key (string)The key.
The value as Plane.

GetPoint3d

#Since v5.0
public Point3d GetPoint3d(string key, Point3d defaultValue)
Get value as Point3d, will return defaultValue unless value was created using Set(string key, Point3d value)
key (string)
defaultValue (Point3d)

GetPoint3d

#Since v5.0
public Point3d GetPoint3d(string key)
Get value as Point3d, will only succeed if value was created using Set(string key, Point3d value)
key (string)

GetPoint3f

#Since v5.0
public Point3f GetPoint3f(string key, Point3f defaultValue)
Get value as Point3f, will return defaultValue unless value was created using Set(string key, Point3f value)
key (string)
defaultValue (Point3f)

GetPoint3f

#Since v5.0
public Point3f GetPoint3f(string key)
Get value as Point3f, will only succeed if value was created using Set(string key, Point3f value)
key (string)

GetString

#Since v5.0
public string GetString(string key, string defaultValue)
Get value as string, will return defaultValue unless value was created using Set(string key, string value)
key (string)The key which points to the string
defaultValue (string)The string

GetString

#Since v5.0
public string GetString(string key)
Get value as string, will only succeed if value was created using Set(string key, string value)
key (string)The key which points to the string
The string

GetVector3d

#Since v5.0
public Vector3d GetVector3d(string key, Vector3d defaultValue)
Get value as Vector3d, will return defaultValue unless value was created using Set(string key, Vector3d value)
key (string)
defaultValue (Vector3d)

GetVector3d

#Since v5.0
public Vector3d GetVector3d(string key)
Get value as Vector3d, will only succeed if value was created using Set(string key, Vector3d value)
key (string)

Remove

#Since v5.0
public bool Remove(string key)
Removes the value with the specified key from the dictionary.
key (string)The key of the element to remove.
true if the element is successfully found and removed; otherwise, false. This method returns false if key is not found.
ArgumentNullExceptionKey is null.

RemoveEnumValue<T>

#Since v5.4
[CLSCompliant(false)] public bool RemoveEnumValue<T>()
Remove an enum value from the dictionary.

ReplaceContentsWith

#Since v5.4
public bool ReplaceContentsWith(ArchivableDictionary source)
Replace the contents of the dictionary with that of the given source dictionary.
source (ArchivableDictionary)

Set

#Since v5.0
public bool Set(string key, ArchivableDictionary val)
Sets another ArchivableDictionary as entry in this dictionary.
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.

Set

#Since v5.0
public bool Set(string key, bool val)
Sets a bool.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, BoundingBox val)
Sets a BoundingBox.
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.

Set

#Since v5.0
public bool Set(string key, byte val)
Sets a byte.
key (string)The text key.
val (byte)A byte.

Because byte has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, Color val)
Sets a Color.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, double val)
Sets a double.
key (string)The text key.
val (double)A double.

Because double has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, float val)
Sets a float.
key (string)The text key.
val (float)A float.

Because float has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, Font val)
Sets a Font.
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.

Set

#Since v5.0
public bool Set(string key, GeometryBase val)
Sets any class deriving from the GeometryBase base class.
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.

Set

#Since v5.0
public bool Set(string key, Guid val)
Sets a Guid.
key (string)The text key.
val (Guid)A Guid.

Because Guid has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<bool> val)
Sets a list, an array or any enumerable of bool.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<byte> val)
Sets a list, an array or any enumerable of byte.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<double> val)
Sets a list, an array or any enumerable of double.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<float> val)
Sets a list, an array or any enumerable of float.
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.

true if set operation succeeded, otherwise false.

Set

#Since v7.0
public bool Set(string key, IEnumerable<GeometryBase> val)
Sets an array of GeometryBase
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.

true if successful, false otherwise.

Set

#Since v5.0
public bool Set(string key, IEnumerable<Guid> val)
Sets a list, an array or any enumerable of Guid.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<int> val)
Sets a list, an array or any enumerable of int.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.8
public bool Set(string key, IEnumerable<ObjRef> val)
Sets an array of ObjRef
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.

Set

#Since v5.0
[CLSCompliant(false)] public bool Set(string key, IEnumerable<sbyte> val)
Sets a list, an array or any enumerable of sbyte.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<short> val)
Sets a list, an array or any enumerable of short.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, IEnumerable<string> val)
Sets a list, an array or any enumerable of string.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, int val)
Sets a int.
key (string)The text key.
val (int)A int.

Because int has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, Interval val)
Sets an Interval.
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.

Set

#Since v5.0
public bool Set(string key, Line val)
Sets a Line.
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.

Set

#Since v5.0
public bool Set(string key, long val)
Sets a long.
key (string)The text key.
val (long)A long.

Because long has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, MeshingParameters val)
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.

Set

#Since v5.8
public bool Set(string key, ObjRef val)
Sets a ObjRef
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.

Set

#Since v5.0
public bool Set(string key, Plane val)
Sets a Plane.
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.

Set

#Since v5.0
public bool Set(string key, Point val)
Sets a Point.
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.

Set

#Since v5.0
public bool Set(string key, Point2d val)
Sets a Point2d.
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.

Set

#Since v5.0
public bool Set(string key, Point3d val)
Sets a Point3d.
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.

Set

#Since v5.0
public bool Set(string key, Point3f val)
Sets a Point3f.
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.

Set

#Since v5.0
public bool Set(string key, Point4d val)
Sets a Point4d.
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.

Set

#Since v5.0
public bool Set(string key, PointF val)
Sets a PointF.
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.

Set

#Since v5.0
public bool Set(string key, Ray3d val)
Sets a Ray3d.
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.

Set

#Since v5.0
public bool Set(string key, Rectangle val)
Sets a Rectangle.
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.

Set

#Since v5.0
public bool Set(string key, RectangleF val)
Sets a RectangleF.
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.

Set

#Since v5.0
[CLSCompliant(false)] public bool Set(string key, sbyte val)
Sets a sbyte.
key (string)The text key.
val (sbyte)A sbyte.

Because sbyte has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, short val)
Sets a short.
key (string)The text key.
val (short)A short.

Because short has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, Size val)
Sets a Size.
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.

Set

#Since v5.0
public bool Set(string key, SizeF val)
Sets a SizeF.
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.

Set

#Since v5.0
public bool Set(string key, string val)
Sets a string.
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.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, Transform val)
Sets a Transform.
key (string)A text key.
val (Transform)A transform for that key.

Because Transform has value semantics, changes to the assigning value will leave this entry unchanged.

Set

#Since v5.0
[CLSCompliant(false)] public bool Set(string key, uint val)
Sets a uint.
key (string)The text key.
val (uint)A uint.

Because uint has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
[CLSCompliant(false)] public bool Set(string key, ushort val)
Sets a ushort.
key (string)The text key.
val (ushort)A ushort.

Because ushort has value semantics, changes to the assigning value will leave this entry unchanged.

true if set operation succeeded, otherwise false.

Set

#Since v5.0
public bool Set(string key, Vector2d val)
Sets a Vector2d.
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.

Set

#Since v5.0
public bool Set(string key, Vector3d val)
Sets a Vector3d.
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.

Set

#Since v5.0
public bool Set(string key, Vector3f val)
Sets a Vector3f.
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.

SetEnumValue<T>

#Since v5.4
[CLSCompliant(false)] public bool SetEnumValue<T>(string key, T enumValue)
Set an enum value in the dictionary with a custom key.
key (string)
enumValue (T)

SetEnumValue<T>

#Since v5.4
[CLSCompliant(false)] public bool SetEnumValue<T>(T enumValue)
Set an enum value
enumValue (T)
void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
array (KeyValuePair<string, object>[])
arrayIndex (int)
Explicit

IDictionary<string, object>.Add

#
void IDictionary<string, object>.Add(string key, object value)
This is not supported and always throws NotSupportedException.
key (string)Unused.
value (object)Unused.
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()
Gets the enumerator of this dictionary.
A IEnumerator<T>, where T is an instance of KeyValuePair<T0, T1>, with T0 set as string, and T1 as System.Object.
Explicit

ICloneable.Clone

#Since v5.0

TryGetBool

#Since v5.0
public bool TryGetBool(string key, out bool value)
Get value as Boolean, will only succeed if value was created using Set(string key, Boolean value)
key (string)
value (out bool)

TryGetBytes

#Since v5.9
public bool TryGetBytes(string key, out byte[] value)
Get value as byte[], will only succeed if value was created using Set(string key, byte[] value)
key (string)
value (out byte[])

TryGetDictionary

#Since v5.9
public bool TryGetDictionary(string key, out ArchivableDictionary value)
Get value as ArchivableDictionary, will only succeed if value was created using Set(string key, ArchivableDictionary value)
key (string)
value (out ArchivableDictionary)

TryGetDouble

#Since v5.0
public bool TryGetDouble(string key, out double value)
Get value as double, will only succeed if value was created using Set(string key, double value)
key (string)
value (out double)

TryGetEnumValue<T>

#Since v5.4
[CLSCompliant(false)] public bool TryGetEnumValue<T>(string key, out T enumValue)
Attempt to get an enum value from the dictionary using a custom key.
key (string)
enumValue (out T)

TryGetFloat

#Since v5.0
public bool TryGetFloat(string key, out float value)
Get value as float, will only succeed if value was created using Set(string key, float value)
key (string)
value (out float)

TryGetGuid

#Since v5.0
public bool TryGetGuid(string key, out Guid value)
Get value as Guid, will only succeed if value was created using Set(string key, Guid value)
key (string)
value (out Guid)

TryGetInteger

#Since v5.0
public bool TryGetInteger(string key, out int value)
Get value as int, will only succeed if value was created using Set(string key, int value)
key (string)
value (out int)

TryGetPlane

#Since v6.11
public bool TryGetPlane(string key, out Plane value)
Get value as Plane, will only succeed if value was created using Set(string key, Plane value)
key (string)The key.
value (out Plane)The value.
The value as Plane.

TryGetPoint3d

#Since v5.0
public bool TryGetPoint3d(string key, out Point3d value)
Get value as Point3d, will only succeed if value was created using Set(string key, Point3d value)
key (string)
value (out Point3d)

TryGetPoint3f

#Since v5.0
public bool TryGetPoint3f(string key, out Point3f value)
Get value as Point3f, will only succeed if value was created using Set(string key, Point3f value)
key (string)
value (out Point3f)

TryGetString

#Since v5.0
public bool TryGetString(string key, out string value)
Get value as string, will only succeed if value was created using Set(string key, string value)
key (string)
value (out string)

TryGetValue

#Since v5.0
public bool TryGetValue(string key, out object value)
Gets the value associated with the specified key.
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.
true if the dictionary contains an element with the specified key; otherwise, false.
ArgumentNullExceptionKey is null.

TryGetVector3d

#Since v5.0
public bool TryGetVector3d(string key, out Vector3d value)
Get value as Vector3d, will only succeed if value was created using Set(string key, Vector3d value)
key (string)
value (out Vector3d)