using System; using System.Runtime.InteropServices; namespace System.Configuration.Assemblies { /// Represents a hash of an assembly manifest's contents. // Token: 0x02000145 RID: 325 [Obsolete] [ComVisible(true)] [Serializable] public struct AssemblyHash : ICloneable { /// Initializes a new instance of the structure with the specified hash algorithm and the hash value. /// The algorithm used to generate the hash. Values for this parameter come from the enumeration. /// The hash value. // Token: 0x060010B9 RID: 4281 RVA: 0x00044D78 File Offset: 0x00042F78 [Obsolete] public AssemblyHash(AssemblyHashAlgorithm algorithm, byte[] value) { this._algorithm = algorithm; if (value != null) { this._value = (byte[])value.Clone(); } else { this._value = null; } } /// Initializes a new instance of the structure with the specified hash value. The hash algorithm defaults to . /// The hash value. // Token: 0x060010BA RID: 4282 RVA: 0x00044DB0 File Offset: 0x00042FB0 [Obsolete] public AssemblyHash(byte[] value) { this = new AssemblyHash(AssemblyHashAlgorithm.SHA1, value); } /// Gets or sets the hash algorithm. /// An assembly hash algorithm. // Token: 0x170002C9 RID: 713 // (get) Token: 0x060010BC RID: 4284 RVA: 0x00044DD0 File Offset: 0x00042FD0 // (set) Token: 0x060010BD RID: 4285 RVA: 0x00044DD8 File Offset: 0x00042FD8 [Obsolete] public AssemblyHashAlgorithm Algorithm { get { return this._algorithm; } set { this._algorithm = value; } } /// Clones this object. /// An exact copy of this object. // Token: 0x060010BE RID: 4286 RVA: 0x00044DE4 File Offset: 0x00042FE4 [Obsolete] public object Clone() { return new AssemblyHash(this._algorithm, this._value); } /// Gets the hash value. /// The hash value. // Token: 0x060010BF RID: 4287 RVA: 0x00044DFC File Offset: 0x00042FFC [Obsolete] public byte[] GetValue() { return this._value; } /// Sets the hash value. /// The hash value. // Token: 0x060010C0 RID: 4288 RVA: 0x00044E04 File Offset: 0x00043004 [Obsolete] public void SetValue(byte[] value) { this._value = value; } // Token: 0x0400040E RID: 1038 private AssemblyHashAlgorithm _algorithm; // Token: 0x0400040F RID: 1039 private byte[] _value; /// An empty object. // Token: 0x04000410 RID: 1040 [Obsolete] public static readonly AssemblyHash Empty = new AssemblyHash(AssemblyHashAlgorithm.None, null); } }