MethodBuilder Methods
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The MethodBuilder type exposes the following members.
Methods
Name | Description | |
---|---|---|
CreateDelegate(Type) | Creates a delegate of the specified type from this method. (Inherited from MethodInfo.) | |
CreateDelegate(Type, Object) | Creates a delegate of the specified type with the specified target from this method. (Inherited from MethodInfo.) | |
DefineGenericParameters | Sets the number of generic type parameters for the current method, specifies their names, and returns an array of GenericTypeParameterBuilder objects that can be used to define their constraints. | |
DefineParameter | Sets the parameter attributes and the name of a parameter of this method, or of the return value of this method. Returns a ParameterBuilder that can be used to apply custom attributes. | |
Equals | Determines whether the given object is equal to this instance. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetBaseDefinition | Returns the base implementation for a method. (Overrides MethodInfo.GetBaseDefinition().) | |
GetCustomAttributes(Boolean) | Returns all the custom attributes defined for this method. (Overrides MemberInfo.GetCustomAttributes(Boolean).) | |
GetCustomAttributes(Type, Boolean) | Returns the custom attributes identified by the given type. (Overrides MemberInfo.GetCustomAttributes(Type, Boolean).) | |
GetGenericArguments | Returns an array of GenericTypeParameterBuilder objects that represent the type parameters of the method, if it is generic. (Overrides MethodInfo.GetGenericArguments().) | |
GetGenericMethodDefinition | Returns this method. (Overrides MethodInfo.GetGenericMethodDefinition().) | |
GetHashCode | Gets the hash code for this method. (Overrides Object.GetHashCode().) | |
GetILGenerator() | Returns an ILGenerator for this method with a default Microsoft intermediate language (MSIL) stream size of 64 bytes. | |
GetILGenerator(Int32) | Returns an ILGenerator for this method with the specified Microsoft intermediate language (MSIL) stream size. | |
GetMethodImplementationFlags | Returns the implementation flags for the method. (Overrides MethodBase.GetMethodImplementationFlags().) | |
GetModule | Returns a reference to the module that contains this method. | |
GetParameters | Returns the parameters of this method. (Overrides MethodBase.GetParameters().) | |
GetToken | Returns the MethodToken that represents the token for this method. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invoke(Object, array<Object[]) | Invokes the method or constructor represented by the current instance, using the specified parameters. (Inherited from MethodBase.) | |
Invoke(Object, BindingFlags, Binder, array<Object[], CultureInfo) | Dynamically invokes the method reflected by this instance on the given object, passing along the specified parameters, and under the constraints of the given binder. (Overrides MethodBase.Invoke(Object, BindingFlags, Binder, array<Object[], CultureInfo).) | |
IsDefined | Checks if the specified custom attribute type is defined. (Overrides MemberInfo.IsDefined(Type, Boolean).) | |
MakeGenericMethod | Returns a generic method constructed from the current generic method definition using the specified generic type arguments. (Overrides MethodInfo.MakeGenericMethod(array<Type[]).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetCustomAttribute | Sets a custom attribute using a custom attribute builder. | |
SetImplementationFlags | Sets the implementation flags for this method. | |
SetParameters | Sets the number and types of parameters for a method. | |
SetReturnType | Sets the return type of the method. | |
SetSignature | Sets the method signature, including the return type, the parameter types, and the required and optional custom modifiers of the return type and parameter types. | |
ToString | Returns this MethodBuilder instance as a string. (Overrides Object.ToString().) |
Top