blob: 39bd0c369a4b270a9a2556d70b5209d52b08c96b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
//
// System.Reflection.AssemblyAlgorithmIdAttribute.cs
//
// Author: Duncan Mak <duncan@ximian.com>
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
//
using System;
using System.Configuration.Assemblies;
namespace System.Reflection
{
[AttributeUsage (AttributeTargets.Assembly)]
public sealed class AssemblyAlgorithmIdAttribute : Attribute
{
// Field
private uint id;
// Constructor
public AssemblyAlgorithmIdAttribute (AssemblyHashAlgorithm algorithmId)
{
id = (uint) algorithmId;
}
[CLSCompliant (false)]
public AssemblyAlgorithmIdAttribute (uint algorithmId)
{
id = algorithmId;
}
// Property
[CLSCompliant (false)]
public uint AlgorithmId
{
get { return id; }
}
}
}
|