NameHash

References
Contains information that is useful to uniquely identify an object name. This object is immutable.

Constructors

NameHash

#
Constructs a copy of a content hash.
protected NameHash(
NameHash
other
The other content hash to copy.
)

NameHash

#Since v6.0
Creates a new NameHash, representing a piece of text.
public NameHash(
name,
A name. This can be null and can refer to a non-existing path.
parentId,
The id of the parent layer. This is only useful with layers.
ignoreCase
All manifest searches currently ignore case, except for groups.
)
A new hash

NameHash

#Since v6.0
Creates a new NameHash, representing a piece of text.
public NameHash(
name,
A name. This can be null and can refer to a non-existing path.
parentId,
The id of the parent layer. This is only useful with layers.
type
Calls ModelComponent.ModelComponentTypeIgnoresCase(ModelComponentType) to determine if case should be used in search.
)
A new hash

NameHash

#Since v6.0
Creates a new NameHash, representing a piece of text.
public NameHash(
name,
A name. This can be null and can refer to a non-existing path.
parentId
The id of the parent layer. This is only useful with layers.
)
A new hash

NameHash

#Since v6.0
Creates a new NameHash, representing a piece of text.
public NameHash(
name
A name. This can be null and can refer to a non-existing path.
)

Properties

MappedCodePoints

#Since v6.0
Gets the NameHash flags. In some cases = number of mapped code points.
[CLSCompliant(false)] public uint MappedCodePoints { get; }

ParentId

#Since v6.0
Only useful if this participates in a tree structure, as with layers.
public Guid ParentId { get; }

Sha1Hash

#Since v6.0
Gets the 20-bytes long SHA-1 hash of ordinal minimum mapped Unicode (UTF-32) code points.
public byte[] Sha1Hash { get; }

Methods

Clone

#Since v6.0
Creates a copy of this name hash. Because content hash is immutable, this can be used as a deep copy.
public NameHash Clone()
A different instance of the same name hash.

CreateFilePathHash

#Since v6.0
Creates a new NameHash, representing the name of a file.
public static NameHash CreateFilePathHash(
path
A path. This can be null and can refer to a non-existing path.
)

Equals

#Since v6.0
Determines if another name hash has the same value.
public bool Equals(
other
The other name hash to compare.
)
True if the two hashes are equal.

Equals

#
Determines if another object is a name hash with same value.
public override bool Equals(
obj
The other content hash to compare.
)
True if the two hashes are equal.
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.
public override int GetHashCode()
An hash code value.
Explicit

ICloneable.Clone

#Since v6.0

Operators

OperationResultDescription
NameHash==NameHashboolDetermines if two NameHash instances are equal by value.
NameHash!=NameHashboolDetermines if two NameHash instances are different by value.