/// <summary> /// Sets the mask. /// </summary> /// <param name="SignatureMask">The signature mask.</param> /// <exception cref="System.ArgumentNullException">SignatureMask</exception> internal void SetMask(SignatureMask SignatureMask) { if (SignatureMask == null) { throw new ArgumentNullException(nameof(SignatureMask)); } this.Mask = SignatureMask; }
/// <summary> /// Initializes a new instance of the <see cref="Signature"/> class. /// </summary> /// <param name="Name">The name.</param> /// <param name="Signature">The signature.</param> /// <param name="Mask">The mask.</param> public Signature(string Name, string Signature, SignatureMask Mask) : this() { this.SetName(Name); this.SetSig(Signature); this.SetMask(Mask); if (this.Length != this.Mask.Length) { throw new ArgumentException("The signature and the mask length doesn't match"); } }