Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (signature_ != null)
            {
                hash ^= Signature.GetHashCode();
            }
            hash ^= Attr.GetHashCode();
            hash ^= ArgAttr.GetHashCode();
            hash ^= ResourceArgUniqueId.GetHashCode();
            hash ^= nodeDef_.GetHashCode();
            hash ^= Ret.GetHashCode();
            hash ^= ControlRet.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 public bool Equals(FunctionDef other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!object.Equals(Signature, other.Signature))
     {
         return(false);
     }
     if (!Attr.Equals(other.Attr))
     {
         return(false);
     }
     if (!ArgAttr.Equals(other.ArgAttr))
     {
         return(false);
     }
     if (!ResourceArgUniqueId.Equals(other.ResourceArgUniqueId))
     {
         return(false);
     }
     if (!nodeDef_.Equals(other.nodeDef_))
     {
         return(false);
     }
     if (!Ret.Equals(other.Ret))
     {
         return(false);
     }
     if (!ControlRet.Equals(other.ControlRet))
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }