System.Reflection.Emit.MethodBuilder.GetGenericMethodDefinition Method

Returns this method.

Syntax

public override System.Reflection.MethodInfo GetGenericMethodDefinition ()

Returns

The current instance of System.Reflection.Emit.MethodBuilder.

Remarks

A System.Reflection.Emit.MethodBuilder cannot be used to emit a constructed generic method directly. The emitted method is a generic method definition.

For more information, see System.Reflection.MethodInfo.IsGenericMethod and System.Reflection.MethodInfo.GetGenericMethodDefinition. For information on generic types, see Type.IsGenericType.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0