Skip to content

ArchivableDictionary

Public Class

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

See remarks for layout.

Inheritance Hierarchy

System.Object
Rhino.Collections.ArchivableDictionary

Namespace: Rhino.Collections

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

[SerializableAttribute]
public class ArchivableDictionary : ICloneable,
IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>,
IEnumerable<KeyValuePair<string, Object>>, IEnumerable,
ISerializable

The ArchivableDictionary type exposes the following members.

Constructors

Name

Description


Public Method

Initializes an instance of a dictionary for writing to a 3dm archive.


Public Method

Initializes an instance of a dictionary for writing to a 3dm archive.


Public Method

Initializes an instance of a dictionary for writing to a 3dm archive


Public Method

Initializes an instance of a dictionary for writing to a 3dm archive.


Protected Method

Protected constructor for internal use.


Properties

Name

Description


Public Property

Retrieve current change serial number. This is a number that gets increased each time a datum is set or changed.


Public Property

Gets the number of key/value pairs contained in the dictionary.


Public Property

Gets the value associated with the specified key.


Public Property

Gets all entry names or keys.


Public Property

Gets or sets the name string of this ArchivableDictionary.


Public Property

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


Public Property

Gets all values in this dictionary.


Public Property

Gets or sets the version of this ArchivableDictionary.


Methods

Name

Description


Public Method

Add the contents from the source dictionary.


Public Method

Removes all keys and values from the dictionary.


Public Method

Constructs a deep copy of this object.


Public Method

Determines whether the dictionary contains the specified key.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

Get value as Boolean, will only succeed if value was created using Set(string key, Boolean value)


Public Method

Get value as Boolean, will return defaultValue unless value was created using Set(string key, Boolean value)


Public Method

Get value as byte[], will only succeed if value was created using Set(string key, byte[] value)


Public Method

Get value as byte[], will return defaultValue unless value was created using Set(string key, byte[] value)


Public Method

Get value as ArchivableDictionary, will only succeed if value was created using Set(string key, ArchivableDictionary value)


Public Method

Get value as ArchivableDictionary, will return defaultValue unless value was created using Set(string key, ArchivableDictionary value)


Public Method

Get value as double, will only succeed if value was created using Set(string key, double value)


Public Method

Get value as double, will only succeed if value was created using Set(string key, double value)


Public Method

Gets the enumerator of this dictionary.


Public Method

Get an enum value


Public Method

Get an enum value from the dictionary using a custom key.


Public Method

Get value as float, will only succeed if value was created using Set(string key, float value)


Public Method

Get value as float, will return defaultValue unless value was created using Set(string key, float value)


Public Method

Get value as Guid, will only succeed if value was created using Set(string key, Guid value)


Public Method

Get value as Guid, will return defaultValue unless value was created using Set(string key, Guid value)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

Get value as int, will return defaultValue unless value was created using Set(string key, int value)


Public Method

Get value as int, will only succeed if value was created using Set(string key, int value)


Public Method

Get value as int, will return defaultValue unless value was created using Set(string key, int value)


Public Method

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.


Public Method

Get value as Plane, will return defaultValue unless value was created using Set(string key, Plane value)


Public Method

Get value as Plane, will return defaultValue unless value was created using Set(string key, Plane value)


Public Method

Get value as Point3d, will only succeed if value was created using Set(string key, Point3d value)


Public Method

Get value as Point3d, will return defaultValue unless value was created using Set(string key, Point3d value)


Public Method

Get value as Point3f, will only succeed if value was created using Set(string key, Point3f value)


Public Method

Get value as Point3f, will return defaultValue unless value was created using Set(string key, Point3f value)


Public Method

Get value as string, will only succeed if value was created using Set(string key, string value)


Public Method

Get value as string, will return defaultValue unless value was created using Set(string key, string value)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Get value as Vector3d, will only succeed if value was created using Set(string key, Vector3d value)


Public Method

Get value as Vector3d, will return defaultValue unless value was created using Set(string key, Vector3d value)


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Removes the value with the specified key from the dictionary.


Public Method

Remove an enum value from the dictionary.


Public Method

Replace the contents of the dictionary with that of the given source dictionary.


Public Method

Sets another ArchivableDictionary as entry in this dictionary.


Public Method

Sets a ObjRef


Public Method

Sets a BoundingBox.


Public Method

Sets any class deriving from the GeometryBase base class.


Public Method

Sets an Interval.


Public Method

Sets a Line.


Public Method

Sets a MeshingParameters.


Public Method

Sets a Plane.


Public Method

Sets a Point2d.


Public Method

Sets a Point3d.


Public Method

Sets a Point3f.


Public Method

Sets a Point4d.


Public Method

Sets a Ray3d.


Public Method

Sets a Transform.


Public Method

Sets a Vector2d.


Public Method

Sets a Vector3d.


Public Method

Sets a Vector3f.


Public Method

Sets a Boolean.


Public Method

Sets a Byte.


Public Method

Sets an array of ObjRef


Public Method

Sets an array of GeometryBase


Public Method

Sets a list, an array or any enumerable of Boolean.


Public Method

Sets a list, an array or any enumerable of Byte.


Public Method

Sets a list, an array or any enumerable of Double.


Public Method

Sets a list, an array or any enumerable of Guid.


Public Method

Sets a list, an array or any enumerable of Int16.


Public Method

Sets a list, an array or any enumerable of Int32.


Public Method

Sets a list, an array or any enumerable of SByte.


Public Method

Sets a list, an array or any enumerable of Single.


Public Method

Sets a list, an array or any enumerable of String.


Public Method

Sets a Double.


Public Method

Sets a Color.


Public Method

Sets a Font.


Public Method

Sets a Point.


Public Method

Sets a PointF.


Public Method

Sets a Rectangle.


Public Method

Sets a RectangleF.


Public Method

Sets a Size.


Public Method

Sets a SizeF.


Public Method

Sets a Guid.


Public Method

Sets a Int16.


Public Method

Sets a Int32.


Public Method

Sets a Int64.


Public Method

Sets a SByte.


Public Method

Sets a Single.


Public Method

Sets a String.


Public Method

Sets a UInt16.


Public Method

Sets a UInt32.


Public Method

Set an enum value


Public Method

Set an enum value in the dictionary with a custom key.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

Get value as Boolean, will only succeed if value was created using Set(string key, Boolean value)


Public Method

Get value as byte[], will only succeed if value was created using Set(string key, byte[] value)


Public Method

Get value as ArchivableDictionary, will only succeed if value was created using Set(string key, ArchivableDictionary value)


Public Method

Get value as double, will only succeed if value was created using Set(string key, double value)


Public Method

Attempt to get an enum value from the dictionary using a custom key.


Public Method

Get value as float, will only succeed if value was created using Set(string key, float value)


Public Method

Get value as Guid, will only succeed if value was created using Set(string key, Guid value)


Public Method

Get value as int, will only succeed if value was created using Set(string key, int value)


Public Method

Get value as Plane, will only succeed if value was created using Set(string key, Plane value)


Public Method

Get value as Point3d, will only succeed if value was created using Set(string key, Point3d value)


Public Method

Get value as Point3f, will only succeed if value was created using Set(string key, Point3f value)


Public Method

Get value as string, will only succeed if value was created using Set(string key, string value)


Public Method

Gets the value associated with the specified key.


Public Method

Get value as Vector3d, will only succeed if value was created using Set(string key, Vector3d value)


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)