コード例 #1
0
        public static MethodDefinition Resolve(IAssemblyResolver resolver, MethodReference method)
        {
            var type = Resolve(resolver, method.DeclaringType);

            if (type == null)
            {
                return(null);
            }

            method = method.GetElementMethod();

            if (!type.HasMethods)
            {
                return(null);
            }

            return(GetMethod(resolver, type, method));
        }
コード例 #2
0
 public sealed override MethodReference GetElementMethod()
 {
     return(method.GetElementMethod());
 }
コード例 #3
0
		public static MethodDefinition Resolve (IAssemblyResolver resolver, MethodReference method)
		{
			var type = Resolve (resolver, method.DeclaringType);
			if (type == null)
				return null;

			method = method.GetElementMethod ();

			if (!type.HasMethods)
				return null;

			return GetMethod (resolver, type, method);
		}