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