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);
}