Beispiel #1
0
 public LinkedResource(string name, ManifestResourceAttributes flags, string resourceFileName, byte[] hash)
     : base(name, flags)
 {
     this.resourceFileName = name;
     this.hash = hash;
     this.hashSource = LinkedResourceHashSource.Explicit;
 }
Beispiel #2
0
 public LinkedResource(string name, ManifestResourceAttributes flags, string resourceFileName, LinkedResourceHashSource hashSource)
     : base(name, flags)
 {
     this.resourceFileName = resourceFileName;
     this.hashSource = hashSource;
 }
Beispiel #3
0
 public LinkedResource(string name, ManifestResourceAttributes flags)
     : base(name, flags)
 {
     this.resourceFileName = name;
     this.hashSource = LinkedResourceHashSource.Delay;
 }
Beispiel #4
0
 /// <summary>
 /// Calculate the hash of the specified file right now instead of delaying until assembly write. 
 /// The HashSource will get changed to LinkedResourceHashSource.Explicit.
 /// </summary>
 /// <param name="fileName">The file to calculate hash from. Uses the current File if not specified.</param>
 public void UseCurrentFileHash(string fileName = null)
 {
     if (fileName != null)
         File = fileName;
     hashSource = LinkedResourceHashSource.File;
     CalculateHash();
     hashSource = LinkedResourceHashSource.Explicit;
 }