Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DynamicMethod Members

Defines and represents a dynamic method. This class cannot be inherited.

The following tables list the members exposed by the DynamicMethod type.

  Name Description
Public method DynamicMethod Overloaded. Creates a dynamic method.
Top
  Name Description
Public property Attributes Overridden. Gets the attributes specified when the dynamic method was created.
Public property CallingConvention Overridden. Gets the calling convention specified when the dynamic method was created.
Public property ContainsGenericParameters  Gets a value indicating whether a generic method contains unassigned generic type parameters.(Inherited from MethodInfo.)
Public property DeclaringType Overridden. Gets the type that declares the method, which is always a null reference (Nothing in Visual Basic) for dynamic methods.
Public property InitLocals Gets or sets a value indicating whether the local variables in the method are zero-initialized.
Public property IsAbstract  Gets a value indicating whether the method is abstract.(Inherited from MethodBase.)
Public property IsAssembly  Gets a value indicating whether this method can be called by other classes in the same assembly.(Inherited from MethodBase.)
Public property IsConstructor  Gets a value indicating whether the method is a constructor.(Inherited from MethodBase.)
Public property 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.)
Public property IsFamilyAndAssembly  Gets a value indicating whether this method can be called by derived classes if they are in the same assembly.(Inherited from MethodBase.)
Public property 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.)
Public property IsFinal  Gets a value indicating whether this method is final.(Inherited from MethodBase.)
Public property IsGenericMethod  Gets a value indicating whether the current method is a generic method.(Inherited from MethodInfo.)
Public property IsGenericMethodDefinition  Gets a value indicating whether the current MethodInfo represents the definition of a generic method.(Inherited from MethodInfo.)
Public property 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.)
Public property IsPrivate  Gets a value indicating whether this member is private.(Inherited from MethodBase.)
Public property IsPublic  Gets a value indicating whether this is a public method.(Inherited from MethodBase.)
Public property IsSpecialName  Gets a value indicating whether this method has a special name.(Inherited from MethodBase.)
Public property IsStatic  Gets a value indicating whether the method is static.(Inherited from MethodBase.)
Public property IsVirtual  Gets a value indicating whether the method is virtual.(Inherited from MethodBase.)
Public property MemberType  Gets a MemberTypes value indicating that this member is a method.(Inherited from MethodInfo.)
Public property MetadataToken  Gets a value that identifies a metadata element.(Inherited from MemberInfo.)
Public property MethodHandle Overridden. Not supported for dynamic methods.
Public property Module Overridden. Gets the module with which the dynamic method is logically associated.
Public property Name Overridden. Gets the name of the dynamic method.
Public property ReflectedType Overridden. Gets the class that was used in reflection to obtain the method.
Public property ReturnParameter Overridden. Gets the return parameter of the dynamic method.
Public property ReturnType Overridden. Gets the type of return value for the dynamic method.
Public property ReturnTypeCustomAttributes Overridden. Gets the custom attributes of the return type for the dynamic method.
Top
  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. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.