Exemple #1
0
 public Checksum(string value, ChecksumAlgorithmEnum algorithm)
 {
     if (string.IsNullOrEmpty(value))
     {
         throw new ArgumentException("Checksum must have a value node.");
     }
     this.value     = value;
     this.algorithm = algorithm;
 }
Exemple #2
0
 public Checksum(string value, string key, ChecksumAlgorithmEnum algorithm) : this(value, algorithm)
 {
     this.key = key;
 }
 public Checksum(string value, string key, ChecksumAlgorithmEnum algorithm)
     : this(value, algorithm)
 {
     this.key = key;
 }
 public Checksum(string value, ChecksumAlgorithmEnum algorithm)
 {
     if (string.IsNullOrEmpty(value)) throw new ArgumentException("Checksum must have a value node.");
     this.value = value;
     this.algorithm = algorithm;
 }