Interface IMethodDescriptor
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Provides members for describing a method in a managed assembly.
public interface IMethodDescriptor : IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IMetadataMember
- Inherited Members
- Extension Methods
Properties
Name
Gets the name of the method.
Utf8String? Name { get; }
Property Value
Signature
Gets the signature of the method.
MethodSignature? Signature { get; }
Property Value
Methods
ImportWith(ReferenceImporter)
Imports the method using the provided reference importer object.
IMethodDescriptor ImportWith(ReferenceImporter importer)
Parameters
importerReferenceImporterThe reference importer to use.
Returns
- IMethodDescriptor
The imported method.
Resolve(RuntimeContext?, out MethodDefinition?)
Attempts to resolve the method reference its definition, assuming the provided module as resolution context.
ResolutionStatus Resolve(RuntimeContext? context, out MethodDefinition? definition)
Parameters
contextRuntimeContextThe context to assume when resolving the method.
definitionMethodDefinitionThe resolved method definition, or
nullif the method could not be resolved.
Returns
- ResolutionStatus
A value describing the success or failure status of the method resolution.