# NameHash class

Namespace: [Rhino.FileIO](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.fileio.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class NameHash : ICloneable, IEquatable<NameHash>
```

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

## Constructors

- [NameHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/ctor.md): (5 overloads) Constructs a copy of a content hash.

## Properties

- [MappedCodePoints](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/mappedcodepoints.md): Gets the NameHash flags. In some cases = number of mapped code points.
- [ParentId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/parentid.md): Only useful if this participates in a tree structure, as with layers.
- [Sha1Hash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/sha1hash.md): Gets the 20-bytes long SHA-1 hash of ordinal minimum mapped Unicode (UTF-32) code points.

## Methods

- [Clone](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/clone.md): Creates a copy of this name hash. Because content hash is immutable, this can be used as a deep copy.
- [CreateFilePathHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/createfilepathhash.md): (static) Creates a new NameHash, representing the name of a file.
- [Equals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/equals.md): (2 overloads) Determines if another name hash has the same value.
- [GetHashCode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/gethashcode.md): Gets an hash code for this name hash. Two equal content hashes have equal hash code. The other way around might not be true.
- [ICloneable.Clone](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/system-icloneable-clone.md)

## Operators

- [operator ==](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/op-equality.md): (static) Determines if two NameHash instances are equal by value.
- [operator !=](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.namehash/op-inequality.md): (static) Determines if two NameHash instances are different by value.
