NameHash
ReferencesContains information that is useful to uniquely identify an object name. This object is immutable.
Constructors
NameHash
#protected NameHash(NameHash other)
Constructs a copy of a content hash.
Parameters:
| other (NameHash) | The other content hash to copy. |
Creates a new NameHash, representing a piece of text.
Creates a new NameHash, representing a piece of text.
Parameters:
| name (string) | A name. This can be null and can refer to a non-existing path. |
| parentId (Guid) | The id of the parent layer. This is only useful with layers. |
| type (ModelComponentType) | Calls ModelComponent.ModelComponentTypeIgnoresCase(ModelComponentType) to determine if case should be used in search. |
Returns: A new hash
Creates a new NameHash, representing a piece of text.
Properties
Gets the NameHash flags. In some cases = number of mapped code points.
Only useful if this participates in a tree structure, as with layers.
Methods
Creates a copy of this name hash. Because content hash is immutable, this can be used as a deep copy.
Returns: A different instance of the same name hash.
Creates a new NameHash, representing the name of a file.
Parameters:
| path (string) | A path. This can be null and can refer to a non-existing path. |
Determines if another name hash has the same value.
Parameters:
| other (NameHash) | The other name hash to compare. |
Returns: True if the two hashes are equal.
Equals
#Determines if another object is a name hash with same value.
Parameters:
| obj (object) | The other content hash to compare. |
Returns: True if the two hashes are equal.
Overrides: Object.Equals
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.
Returns: An hash code value.
Overrides: Object.GetHashCode