public override bool Equals(object obj) { TermSimple o2 = (TermSimple)obj; if (Name.Equals(o2.Name) && Exponent.Equals(o2.Exponent)) { return(true); } return(false); }
/// <summary> /// Returns a value that indicates whether the current structure contains the same public key values as the compared structure. /// </summary> /// <param name="keys"></param> /// <returns></returns> public bool EqualsPublic(RSAKeys keys) { return(Modulus.Equals(keys.Modulus) && Exponent.Equals(keys.Exponent)); }