Esempio n. 1
0
        public override bool Equals(object obj)
        {
            TermSimple o2 = (TermSimple)obj;

            if (Name.Equals(o2.Name) && Exponent.Equals(o2.Exponent))
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
 /// <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));
 }