LinkedResource.cs 770 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // Author:
  3. // Jb Evain (jbevain@gmail.com)
  4. //
  5. // Copyright (c) 2008 - 2015 Jb Evain
  6. // Copyright (c) 2008 - 2011 Novell, Inc.
  7. //
  8. // Licensed under the MIT/X11 license.
  9. //
  10. namespace ILRuntime.Mono.Cecil {
  11. public sealed class LinkedResource : Resource {
  12. internal byte [] hash;
  13. string file;
  14. public byte [] Hash {
  15. get { return hash; }
  16. }
  17. public string File {
  18. get { return file; }
  19. set { file = value; }
  20. }
  21. public override ResourceType ResourceType {
  22. get { return ResourceType.Linked; }
  23. }
  24. public LinkedResource (string name, ManifestResourceAttributes flags)
  25. : base (name, flags)
  26. {
  27. }
  28. public LinkedResource (string name, ManifestResourceAttributes flags, string file)
  29. : base (name, flags)
  30. {
  31. this.file = file;
  32. }
  33. }
  34. }