scripts
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Configuration.Assemblies;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Reflection
|
||||
{
|
||||
/// <summary>Specifies an algorithm to hash all files in an assembly. This class cannot be inherited.</summary>
|
||||
// Token: 0x02000222 RID: 546
|
||||
[AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
|
||||
[ComVisible(true)]
|
||||
public sealed class AssemblyAlgorithmIdAttribute : Attribute
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyAlgorithmIdAttribute" /> class with the specified hash algorithm, using one of the members of <see cref="T:System.Configuration.Assemblies.AssemblyHashAlgorithm" /> to represent the hash algorithm.</summary>
|
||||
/// <param name="algorithmId">A member of AssemblyHashAlgorithm that represents the hash algorithm. </param>
|
||||
// Token: 0x06001D5E RID: 7518 RVA: 0x0006E0B0 File Offset: 0x0006C2B0
|
||||
public AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm algorithmId)
|
||||
{
|
||||
this.id = (uint)algorithmId;
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyAlgorithmIdAttribute" /> class with the specified hash algorithm, using an unsigned integer to represent the hash algorithm.</summary>
|
||||
/// <param name="algorithmId">An unsigned integer representing the hash algorithm. </param>
|
||||
// Token: 0x06001D5F RID: 7519 RVA: 0x0006E0C0 File Offset: 0x0006C2C0
|
||||
[CLSCompliant(false)]
|
||||
public AssemblyAlgorithmIdAttribute(uint algorithmId)
|
||||
{
|
||||
this.id = algorithmId;
|
||||
}
|
||||
|
||||
/// <summary>Gets the hash algorithm of an assembly manifest's contents.</summary>
|
||||
/// <returns>An unsigned integer representing the assembly hash algorithm.</returns>
|
||||
// Token: 0x17000540 RID: 1344
|
||||
// (get) Token: 0x06001D60 RID: 7520 RVA: 0x0006E0D0 File Offset: 0x0006C2D0
|
||||
[CLSCompliant(false)]
|
||||
public uint AlgorithmId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040009DF RID: 2527
|
||||
private uint id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user