| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // System.Reflection.AssemblyAlgorithmIdAttribute.cs
- //
- // Author: Duncan Mak <[email protected]>
- //
- // (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; }
- }
- }
- }
|