Example #1
0
        public override bool Equals(object obj)
        {
            MissingField other = obj as MissingField;

            return(other != null &&
                   other.declaringType == declaringType &&
                   other.name == name &&
                   other.signature.Equals(signature));
        }
Example #2
0
 internal FieldInfo GetMissingFieldOrThrow(Module requester, Type declaringType, string name, FieldSignature signature)
 {
     if (resolveMissingMembers)
     {
         FieldInfo field = new MissingField(declaringType, name, signature);
         if (ResolvedMissingMember != null)
         {
             ResolvedMissingMember(requester, field);
         }
         return(field);
     }
     throw new MissingFieldException(declaringType.ToString(), name);
 }