NameHash
Contains information that is useful to uniquely identify an object name.
Remarks
This object is immutable.
Inheritance Hierarchy
System.Object
Rhino.FileIO.NameHash
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class NameHash : ICloneable, IEquatable<NameHash>
The NameHash type exposes the following members.
Constructors
Name
Description
Protected Method
NameHash(NameHash)
Constructs a copy of a content hash.
Public Method
NameHash(String)
Creates a new NameHash, representing a piece of text.
Public Method
NameHash(String, Guid)
Creates a new NameHash, representing a piece of text.
Public Method
NameHash(String, Guid, ModelComponentType)
Creates a new NameHash, representing a piece of text.
Public Method
NameHash(String, Guid, Boolean)
Creates a new NameHash, representing a piece of text.
Properties
Name
Description
Public Property
MappedCodePoints
Gets the NameHash flags. In some cases = number of mapped code points.
Public Property
ParentId
Only useful if this participates in a tree structure, as with layers.
Public Property
Sha1Hash
Gets the 20-bytes long SHA-1 hash of ordinal minimum mapped Unicode (UTF-32) code points.
Methods
Name
Description
Public Method
Clone
Creates a copy of this name hash. Because content hash is immutable, this can be used as a deep copy.
Public Method
Static Member
CreateFilePathHash
Creates a new NameHash, representing the name of a file.
Public Method
Equals(NameHash)
Determines if another name hash has the same value.
Public Method
Equals(Object)
Determines if another object is a name hash with same value.
(Overrides Object.Equals(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
GetHashCode
Gets an hash code for this name hash. Two equal content hashes have equal hash code. The other way around might not be true.
(Overrides Object.GetHashCode..)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Operators
Name
Description
Public Operator
Static Member
Equality
Determines if two NameHash instances are equal by value.
Public Operator
Static Member
Inequality
Determines if two NameHash instances are different by value.