/Mono.Cecil/LinkedResource.cs

http://github.com/jbevain/cecil · C# · 42 lines · 25 code · 8 blank · 9 comment · 0 complexity · 76bee776b1b09a9102cc37f5097759e4 MD5 · raw file

  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 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. }