Mono.Cecil.MetadataResolver.Resolve C# (CSharp) Method

Resolve() public method

public Resolve ( MethodReference method ) : Mono.Cecil.MethodDefinition
method MethodReference
return Mono.Cecil.MethodDefinition
		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);
		}

Same methods

MetadataResolver::Resolve ( FieldReference field ) : FieldDefinition
MetadataResolver::Resolve ( TypeReference type ) : Mono.Cecil.TypeDefinition

Usage Example

Esempio n. 1
0
 internal MethodDefinition Resolve(MethodReference method)
 {
     return(MetadataResolver.Resolve(method));
 }
All Usage Examples Of Mono.Cecil.MetadataResolver::Resolve