GetElementMethod() public method

public GetElementMethod ( ) : MethodReference
return MethodReference
Exemplo n.º 1
0
        public virtual MethodDefinition Resolve(MethodReference method)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }

            var type = Resolve(method.DeclaringType);

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

            method = method.GetElementMethod();

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

            return(GetMethod(type, method));
        }
Exemplo n.º 2
0
 public sealed override MethodReference GetElementMethod()
 {
     return(method.GetElementMethod());
 }
Exemplo n.º 3
0
		public virtual MethodDefinition Resolve (MethodReference method)
		{
			if (method == null)
				throw new ArgumentNullException ("method");

			var type = Resolve (method.DeclaringType);
			if (type == null)
				return null;

			method = method.GetElementMethod ();

			if (!type.HasMethods)
				return null;

			return GetMethod (type, method);
		}