This documentation is archived and is not being maintained.

DynamicMethod Methods

  Name Description
Public method CreateDelegate Overloaded. Completes the dynamic method and creates a delegate that can be used to execute it.
Public method DefineParameter Defines a parameter of the dynamic method.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetBaseDefinition Overridden. Returns the base implementation for the method.
Public method Static GetCurrentMethod  Returns a MethodBase object representing the currently executing method. (inherited from MethodBase)
Public method GetCustomAttributes Overloaded. Overridden. Returns the custom attributes applied to the method.
Public method GetDynamicILInfo Returns a DynamicILInfo object that can be used to generate a method body from metadata tokens, scopes, and Microsoft intermediate language (MSIL) streams.
Public method GetGenericArguments  Returns an array of Type objects that represent the type arguments of a generic method or the type parameters of a generic method definition. (inherited from MethodInfo)
Public method GetGenericMethodDefinition  Returns a MethodInfo object that represents a generic method definition from which the current method can be constructed. (inherited from MethodInfo)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetILGenerator Overloaded. Returns an MSIL generator that can be used to emit a body for the dynamic method.
Public method GetMethodBody  When overridden in a derived class, gets a MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method. (inherited from MethodBase)
Public method Static GetMethodFromHandle  Overloaded. Gets method information using the specified handle. (inherited from MethodBase)
Public method GetMethodImplementationFlags Overridden. Returns the implementation flags for the method.
Public method GetParameters Overridden. Returns the parameters of the dynamic method.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Invoke Overloaded. Invokes the dynamic method.
Public method IsDefined Overridden. Indicates whether the specified custom attribute type is defined.
Public method MakeGenericMethod  Substitutes the elements of an array of types for the type parameters of the current generic method definition, and returns a MethodInfo object representing the resulting constructed method. (inherited from MethodInfo)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString Overridden. Returns the signature of the method, represented as a string.