C# Class NProxy.Core.Internal.Reflection.Emit.MethodBuilderExtensions

Provides MethodBuilder extension methods.
Exibir arquivo Open project: mtamme/NProxy

Public Methods

Method Description
DefineGenericParameters ( this methodBuilder, MethodBase methodBase ) : System.Type[]

Defines the generic method parameters based on the specified method.

Custom attributes are not considered by this method.

DefineParameters ( this methodBuilder, MethodInfo methodInfo ) : void

Defines the method parameters based on the specified method.

DefineParameters ( this methodBuilder, MethodInfo methodInfo, Type genericTypes ) : void

Defines the method parameters based on the specified method.

Method Details

DefineGenericParameters() public static method

Defines the generic method parameters based on the specified method.
Custom attributes are not considered by this method.
public static DefineGenericParameters ( this methodBuilder, MethodBase methodBase ) : System.Type[]
methodBuilder this The method builder.
methodBase System.Reflection.MethodBase The method base.
return System.Type[]

DefineParameters() public static method

Defines the method parameters based on the specified method.
public static DefineParameters ( this methodBuilder, MethodInfo methodInfo ) : void
methodBuilder this The method builder.
methodInfo System.Reflection.MethodInfo The method information.
return void

DefineParameters() public static method

Defines the method parameters based on the specified method.
public static DefineParameters ( this methodBuilder, MethodInfo methodInfo, Type genericTypes ) : void
methodBuilder this The method builder.
methodInfo System.Reflection.MethodInfo The method information.
genericTypes System.Type The generic types.
return void