Example #1
0
        public override bool Equals(object obj)
        {
            var method = obj as MethodInfo;

            if (method != null)
            {
                return(IsStatic == method.IsStatic &&
                       Name == method.Name &&
                       CompareVarList(vars, method.vars) &&
                       Ret.Equals(method.Ret));
            }

            return(false);
        }
Example #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));
 }