Esempio n. 1
0
        public virtual MethodDefinition Resolve(MethodReference method)
        {
            Mixin.CheckMethod(method);

            var type = Resolve(method.DeclaringType);

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

            method = method.GetElementMethod();

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

            return(GetMethod(type, method));
        }
 public sealed override MethodReference GetElementMethod()
 {
     return(method.GetElementMethod());
 }