Show / Hide Table of Contents

Interface IParamsProvider

Represents an object that can provide information about method parameters

Namespace: CilTools.Reflection
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public interface IParamsProvider
Remarks

External methods in .NET assemblies are referenced using a signature that contains information about their parameter types, but does not contain other information, such as parameter names. Getting that information requires resolving a reference and loading the actual implementation pointed by it, which can fail if the containing assembly is not available. In some cases we only need to query parameter types and don't need to resolve external references. This interface solves this problem by allowing our code to call GetParameters(RefResolutionMode.NoResolve) in these cases.

Methods

GetParameters(RefResolutionMode)

Gets parameters for the current method using the specified external references resolution mode

Declaration
ParameterInfo[] GetParameters(RefResolutionMode refResolutionMode)
Parameters
Type Name Description
RefResolutionMode refResolutionMode

External references resolution mode to use

Returns
Type Description
System.Reflection.ParameterInfo[]

An array of System.Reflection.ParameterInfo containing information that matches the signature of the current method

Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX