MethodBuilder.GetGenericMethodDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns this method.
public:
override System::Reflection::MethodInfo ^ GetGenericMethodDefinition();
public override System.Reflection.MethodInfo GetGenericMethodDefinition ();
override this.GetGenericMethodDefinition : unit -> System.Reflection.MethodInfo
Public Overrides Function GetGenericMethodDefinition () As MethodInfo
Returns
The current instance of MethodBuilder.
Exceptions
The current method is not generic. That is, the IsGenericMethod property returns false
.
Remarks
A MethodBuilder cannot be used to emit a constructed generic method directly. The emitted method is a generic method definition.
For more information, see MethodBase.IsGenericMethod and MethodInfo.GetGenericMethodDefinition. For information on generic types, see Type.IsGenericType.