Skip to content

ID

Public Struct

An ID is used to uniquely identify a specific item.

Namespace: GH_IO.Serialization

Assembly: GH_IO (in GH_IO.dll)

Syntax

public struct ID : IComparable<ID>, IEquatable<ID>

The ID type exposes the following members.

Constructors

Name

Description


Public Method

Constuctor for IDs.


Public Method

Constructor for IDs.


Properties

Name

Description


Public Property

Gets the hash code.


Public Property

Gets whether the index has been set.


Public Property

Gets whether the name has been set. Every valid ID must have a name.


Public Property

Gets the index of this ID, if there is no valid index then -1 is returned.


Public Property

Gets the name of this ID.


Methods

Name

Description


Public Method

Compares this ID to another ID.


Public Method

Determines if two IDs are equal.


Public Method

Gets the hash code.

(Overrides ValueType.GetHashCode..)


Public Method

Gets a string representation for this ID.

(Overrides ValueType.ToString..)