DynamicMethod Members
.NET Framework 2.0
Defines and represents a dynamic method. This class cannot be inherited.
The following tables list the members exposed by the DynamicMethod type.
| Name | Description | |
|---|---|---|
| Attributes | Overridden. Gets the attributes specified when the dynamic method was created. |
| CallingConvention | Overridden. Gets the calling convention specified when the dynamic method was created. |
| ContainsGenericParameters | Gets a value indicating whether a generic method contains unassigned generic type parameters.(Inherited from MethodInfo.) |
| DeclaringType | Overridden. Gets the type that declares the method, which is always a null reference (Nothing in Visual Basic) for dynamic methods. |
| InitLocals | Gets or sets a value indicating whether the local variables in the method are zero-initialized. |
| IsAbstract | Gets a value indicating whether the method is abstract.(Inherited from MethodBase.) |
| IsAssembly | Gets a value indicating whether this method can be called by other classes in the same assembly.(Inherited from MethodBase.) |
| IsConstructor | Gets a value indicating whether the method is a constructor.(Inherited from MethodBase.) |
| IsFamily | Gets a value indicating whether access to this method is restricted to members of the class and members of its derived classes.(Inherited from MethodBase.) |
| IsFamilyAndAssembly | Gets a value indicating whether this method can be called by derived classes if they are in the same assembly.(Inherited from MethodBase.) |
| IsFamilyOrAssembly | Gets a value indicating whether this method can be called by derived classes, wherever they are, and by all classes in the same assembly.(Inherited from MethodBase.) |
| IsFinal | Gets a value indicating whether this method is final.(Inherited from MethodBase.) |
| IsGenericMethod | Gets a value indicating whether the current method is a generic method.(Inherited from MethodInfo.) |
| IsGenericMethodDefinition | Gets a value indicating whether the current MethodInfo represents the definition of a generic method.(Inherited from MethodInfo.) |
| IsHideBySig | Gets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class.(Inherited from MethodBase.) |
| IsPrivate | Gets a value indicating whether this member is private.(Inherited from MethodBase.) |
| IsPublic | Gets a value indicating whether this is a public method.(Inherited from MethodBase.) |
| IsSpecialName | Gets a value indicating whether this method has a special name.(Inherited from MethodBase.) |
| IsStatic | Gets a value indicating whether the method is static.(Inherited from MethodBase.) |
| IsVirtual | Gets a value indicating whether the method is virtual.(Inherited from MethodBase.) |
| MemberType | Gets a MemberTypes value indicating that this member is a method.(Inherited from MethodInfo.) |
| MetadataToken | Gets a value that identifies a metadata element.(Inherited from MemberInfo.) |
| MethodHandle | Overridden. Not supported for dynamic methods. |
| Module | Overridden. Gets the module with which the dynamic method is logically associated. |
| Name | Overridden. Gets the name of the dynamic method. |
| ReflectedType | Overridden. Gets the class that was used in reflection to obtain the method. |
| ReturnParameter | Overridden. Gets the return parameter of the dynamic method. |
| ReturnType | Overridden. Gets the type of return value for the dynamic method. |
| ReturnTypeCustomAttributes | Overridden. Gets the custom attributes of the return type for the dynamic method. |
| Name | Description | |
|---|---|---|
| CreateDelegate | Overloaded. Completes the dynamic method and creates a delegate that can be used to execute it. |
| DefineParameter | Defines a parameter of the dynamic method. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetBaseDefinition | Overridden. Returns the base implementation for the method. |
| GetCurrentMethod | Returns a MethodBase object representing the currently executing method. (Inherited from MethodBase.) |
| GetCustomAttributes | Overloaded. Overridden. Returns the custom attributes applied to the 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. |
| 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.) |
| GetGenericMethodDefinition | Returns a MethodInfo object that represents a generic method definition from which the current method can be constructed. (Inherited from MethodInfo.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetILGenerator | Overloaded. Returns an MSIL generator that can be used to emit a body for the dynamic 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.) |
| GetMethodFromHandle | Overloaded. Gets method information using the specified handle. (Inherited from MethodBase.) |
| GetMethodImplementationFlags | Overridden. Returns the implementation flags for the method. |
| GetParameters | Overridden. Returns the parameters of the dynamic method. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| Invoke | Overloaded. Invokes the dynamic method. |
| IsDefined | Overridden. Indicates whether the specified custom attribute type is defined. |
| 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.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Overridden. Returns the signature of the method, represented as a string. |