Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.0 KiB

  1. using System;
  2. using System.Text;
  3. namespace Microsoft.Fusion.ADF
  4. {
  5. public class DependentFileInfo
  6. {
  7. private string fileName;
  8. private byte[] fileHash;
  9. private string fileHashString;
  10. public DependentFileInfo(string fileName, string fileHashString)
  11. {
  12. this.fileName = "";
  13. if(fileName != null) this.fileName = fileName;
  14. this.fileHash = null;
  15. //if(fileHash != null) {this.fileHash = new byte[fileHash.Length]; Array.Copy(fileHash, this.fileHash, fileHash.Length);}
  16. this.fileHashString = "";
  17. if(fileHashString != null) this.fileHashString = fileHashString;
  18. }
  19. public string Name
  20. {
  21. get
  22. {
  23. return fileName;
  24. }
  25. }
  26. public byte[] Hash
  27. {
  28. get
  29. {
  30. return fileHash;
  31. }
  32. }
  33. public string HashString
  34. {
  35. get
  36. {
  37. return fileHashString;
  38. }
  39. }
  40. public string FullName
  41. {
  42. get
  43. {
  44. StringBuilder sb = new StringBuilder();
  45. sb.Append("name=" + this.fileName);
  46. sb.Append(", hash=" + this.fileHashString);
  47. return sb.ToString();
  48. }
  49. }
  50. }
  51. }