Mono.Cecil.MethodReference.GetElementMethod C# (CSharp) Method

GetElementMethod() public method

public GetElementMethod ( ) : MethodReference
return MethodReference
        public virtual MethodReference GetElementMethod()
        {
            return this;
        }

Usage Example

Esempio n. 1
0
        public virtual MethodDefinition Resolve(MethodReference method)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }
            TypeDefinition type = this.Resolve(method.DeclaringType);

            if (type == null)
            {
                return(null);
            }
            method = method.GetElementMethod();
            return(type.HasMethods ? this.GetMethod(type, method) : null);
        }
All Usage Examples Of Mono.Cecil.MethodReference::GetElementMethod