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