Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj is NEP6Account acc)
            {
                return(ScriptHash.Equals(acc.ScriptHash));
            }

            return(false);
        }
Ejemplo n.º 2
0
 public bool Equals(VerificationContract other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other is null)
     {
         return(false);
     }
     return(ScriptHash.Equals(other.ScriptHash));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 比较与另一个对象是否相等
 /// </summary>
 /// <param name="other">另一个对象</param>
 /// <returns>返回比较的结果</returns>
 public bool Equals(Contract other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ScriptHash.Equals(other.ScriptHash));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 比较与另一个对象是否相等
 /// </summary>
 /// <param name="other">另一个对象</param>
 /// <returns>返回比较的结果</returns>
 public bool Equals(VerificationContract other)
 {
     TR.Enter();
     if (ReferenceEquals(this, other))
     {
         return(TR.Exit(true));
     }
     if (ReferenceEquals(null, other))
     {
         return(TR.Exit(false));
     }
     return(TR.Exit(ScriptHash.Equals(other.ScriptHash)));
 }
Ejemplo n.º 5
0
 public bool Equals(NEP6Account obj)
 {
     return(ScriptHash.Equals(obj));
 }