public override bool Equals(object obj) { if (obj is NEP6Account acc) { return(ScriptHash.Equals(acc.ScriptHash)); } return(false); }
public bool Equals(VerificationContract other) { if (ReferenceEquals(this, other)) { return(true); } if (other is null) { return(false); } return(ScriptHash.Equals(other.ScriptHash)); }
/// <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)); }
/// <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))); }
public bool Equals(NEP6Account obj) { return(ScriptHash.Equals(obj)); }