2
0

AssemblyAlgorithmIdAttribute.cs 727 B

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