ContentHash
Contains information that is useful to uniquely identify an object.
Remarks
This object is immutable.
Inheritance Hierarchy
System.Object
Rhino.FileIO.ContentHash
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class ContentHash : ICloneable, IEquatable<ContentHash>
The ContentHash type exposes the following members.
Constructors
Name
Description
Protected Method
ContentHash
Constructs a copy of a content hash.
Properties
Name
Description
Public Property
ByteCount
Gets the length of the content, in bytes.
Public Property
HashTime
Gets the hash time, rounded to seconds.
Public Property
Sha1ContentHash
Gets the 20-bytes long SHA1 hash of the content.
Public Property
Sha1NameHash
Gets the 20-bytes long SHA1 hash of the name.
Methods
Name
Description
Public Method
Clone
Creates a copy of this content hash. Because content hash is immutable, this can be used as a deep copy.
Public Method
Static Member
CreateFromFile
Creates a new ContentHash, representing the content of a file.
Public Method
Equals(ContentHash)
Determines if another content hash has the same value.
Public Method
Equals(Object)
Determines if another object is a content 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 content 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 ContentHash instances are equal by value.
Public Operator
Static Member
Inequality
Determines if two ContentHash instances are different by value.