Exemplo n.º 1
0
 internal MethodBase GetMissingMethodOrThrow(Module requester, Type declaringType, string name, MethodSignature signature)
 {
     if (resolveMissingMembers)
     {
         MethodBase method = new MissingMethod(declaringType, name, signature);
         if (name == ".ctor")
         {
             method = new ConstructorInfoImpl((MethodInfo)method);
         }
         if (ResolvedMissingMember != null)
         {
             ResolvedMissingMember(requester, method);
         }
         return(method);
     }
     throw new MissingMethodException(declaringType.ToString() + "." + name);
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            ConstructorInfoImpl other = obj as ConstructorInfoImpl;

            return(other != null && other.method.Equals(method));
        }