﻿<?xml version="1.0" encoding="utf-8"?><Type Name="MethodBuilder" FullName="System.Reflection.Emit.MethodBuilder"><TypeSignature Maintainer="auto" Language="C#" Value="public sealed class MethodBuilder : System.Reflection.MethodInfo, System.Runtime.InteropServices._MethodBuilder" /><TypeSignature Language="ILAsm" Value=".class public sequential ansi sealed beforefieldinit MethodBuilder extends System.Reflection.MethodInfo implements class System.Runtime.InteropServices._MethodBuilder" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Reflection.MethodInfo</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Runtime.InteropServices._MethodBuilder</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._MethodBuilder))</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>MethodBuilder is used to fully describe a method in Microsoft intermediate language (MSIL), including the name, attributes, signature, and method body. It is used in conjunction with the <see cref="T:System.Reflection.Emit.TypeBuilder" /> class to create classes at runtime.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Defines and represents a method (or constructor) on a dynamic class.</para></summary></Docs><Members><Member MemberName="AddDeclarativeSecurity"><MemberSignature Language="C#" Value="public void AddDeclarativeSecurity (System.Security.Permissions.SecurityAction action, System.Security.PermissionSet pset);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddDeclarativeSecurity(valuetype System.Security.Permissions.SecurityAction action, class System.Security.PermissionSet pset) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="action" Type="System.Security.Permissions.SecurityAction" /><Parameter Name="pset" Type="System.Security.PermissionSet" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="M:System.Reflection.Emit.MethodBuilder.AddDeclarativeSecurity(System.Security.Permissions.SecurityAction,System.Security.PermissionSet)" /> can be called several times, with each call specifying a security action (such as Demand, Assert, and Deny) and a set of permissions that the action applies to.</para><block subset="none" type="note"><para>In the .NET Framework versions 1.0, 1.1, and 2.0, the declarative security attributes applied to a method by using the <see cref="M:System.Reflection.Emit.MethodBuilder.AddDeclarativeSecurity(System.Security.Permissions.SecurityAction,System.Security.PermissionSet)" /> method are stored in the old XML metadata format. See Emitting Declarative Security Attributes.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Adds declarative security to this method.</para></summary><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The security action to be taken (Demand, Assert, and so on). </param><param name="pset"><attribution license="cc4" from="Microsoft" modified="false" />The set of permissions the action applies to. </param></Docs></Member><Member MemberName="Attributes"><MemberSignature Language="C#" Value="public override System.Reflection.MethodAttributes Attributes { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Reflection.MethodAttributes Attributes" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.MethodAttributes</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the attributes for this method.</para></summary></Docs></Member><Member MemberName="CallingConvention"><MemberSignature Language="C#" Value="public override System.Reflection.CallingConventions CallingConvention { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Reflection.CallingConventions CallingConvention" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.CallingConventions</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the calling convention of the method.</para></summary></Docs></Member><Member MemberName="ContainsGenericParameters"><MemberSignature Language="C#" Value="public override bool ContainsGenericParameters { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool ContainsGenericParameters" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> always represents a generic method definition, and thus cannot be invoked.</para><para>For more information, see <see cref="P:System.Reflection.MethodInfo.IsGenericMethod" /> and <see cref="P:System.Reflection.MethodInfo.ContainsGenericParameters" />. For information on generic types, see <see cref="P:System.Type.IsGenericType" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Not supported for this type.</para></summary></Docs></Member><Member MemberName="CreateMethodBody"><MemberSignature Language="C#" Value="public void CreateMethodBody (byte[] il, int count);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CreateMethodBody(unsigned int8[] il, int32 count) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="il" Type="System.Byte[]" /><Parameter Name="count" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method creates the method's body from <paramref name="il" />, an array containing MSIL instructions as opcodes. The number of bytes of valid MSIL is given by count.</para><block subset="none" type="note"><para>This is currently not fully supported. The user cannot supply the location of token fix ups and exception handlers.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates the body of the method using a supplied byte array of Microsoft intermediate language (MSIL) instructions.</para></summary><param name="il"><attribution license="cc4" from="Microsoft" modified="false" />An array containing valid MSIL instructions. If this parameter is null, the method's body is cleared. </param><param name="count"><attribution license="cc4" from="Microsoft" modified="false" />The number of valid bytes in the MSIL array. This value is ignored if MSIL is null. </param></Docs></Member><Member MemberName="DeclaringType"><MemberSignature Language="C#" Value="public override Type DeclaringType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Type DeclaringType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the type that declares this method.</para></summary></Docs></Member><Member MemberName="DefineGenericParameters"><MemberSignature Language="C#" Value="public System.Reflection.Emit.GenericTypeParameterBuilder[] DefineGenericParameters (string[] names);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Reflection.Emit.GenericTypeParameterBuilder[] DefineGenericParameters(string[] names) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Emit.GenericTypeParameterBuilder[]</ReturnType></ReturnValue><Parameters><Parameter Name="names" Type="System.String[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Calling the <see cref="M:System.Reflection.Emit.MethodBuilder.DefineGenericParameters(System.String[])" /> method makes the current method generic. There is no way to undo this change. Calling this method a second time causes an <see cref="T:System.InvalidOperationException" />.</para><para>The type parameters of the generic method can be retrieved later by using the <see cref="M:System.Reflection.Emit.MethodBuilder.GetGenericArguments" /> method.</para><para>By convention, a type parameter name is a single uppercase letter.</para><para>For more information, see <see cref="P:System.Reflection.MethodInfo.IsGenericMethod" /> and <see cref="M:System.Reflection.MethodInfo.GetGenericMethodDefinition" />. For information on generic types, see <see cref="P:System.Type.IsGenericType" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the number of generic type parameters for the current method, specifies their names, and returns an array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects that can be used to define their constraints.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects representing the type parameters of the generic method.</para></returns><param name="names"><attribution license="cc4" from="Microsoft" modified="false" />An array of strings that represent the names of the generic type parameters.</param></Docs></Member><Member MemberName="DefineParameter"><MemberSignature Language="C#" Value="public System.Reflection.Emit.ParameterBuilder DefineParameter (int position, System.Reflection.ParameterAttributes attributes, string strParamName);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Reflection.Emit.ParameterBuilder DefineParameter(int32 position, valuetype System.Reflection.ParameterAttributes attributes, string strParamName) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Emit.ParameterBuilder</ReturnType></ReturnValue><Parameters><Parameter Name="position" Type="System.Int32" /><Parameter Name="attributes" Type="System.Reflection.ParameterAttributes" /><Parameter Name="strParamName" Type="System.String" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Reflection.Emit.ParameterBuilder" /> object returned by this method can be used to set the default value for a parameter or to apply custom attributes. </para><para>Parameter numbering begins with 1, so <paramref name="position" /> is 1 for the first parameter. If <paramref name="position" /> is zero, this method affects the return value.</para><block subset="none" type="note"><para>In the .NET Framework versions 1.0 and 1.1, an exception is thrown if <paramref name="position" /> is zero, so this method cannot be used to modify attributes of the return value in those versions.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>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.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a ParameterBuilder object that represents a parameter of this method or the return value of this method.</para></returns><param name="position"><attribution license="cc4" from="Microsoft" modified="false" />The position of the parameter in the parameter list. Parameters are indexed beginning with the number 1 for the first parameter; the number 0 represents the return value of the method. </param><param name="attributes"><attribution license="cc4" from="Microsoft" modified="false" />The parameter attributes of the parameter. </param><param name="strParamName"><attribution license="cc4" from="Microsoft" modified="false" />The name of the parameter. The name can be the null string. </param></Docs></Member><Member MemberName="Equals"><MemberSignature Language="C#" Value="public override bool Equals (object obj);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Object" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Equality is determined by having the same name, attributes, and signature.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the given object is equal to this instance.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if <paramref name="obj" /> is an instance of MethodBuilder and is equal to this object; otherwise, false.</para></returns><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />The object to compare with this MethodBuilder instance. </param></Docs></Member><Member MemberName="GetBaseDefinition"><MemberSignature Language="C#" Value="public override System.Reflection.MethodInfo GetBaseDefinition ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Reflection.MethodInfo GetBaseDefinition() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.MethodInfo</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This always returns the current MethodBuilder object.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Return the base implementation for a method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The base implementation of this method.</para></returns></Docs></Member><Member MemberName="GetCustomAttributes"><MemberSignature Language="C#" Value="public override object[] GetCustomAttributes (bool inherit);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object[] GetCustomAttributes(bool inherit) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object[]</ReturnType></ReturnValue><Parameters><Parameter Name="inherit" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns all the custom attributes defined for this method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an array of objects representing all the custom attributes of this method.</para></returns><param name="inherit"><attribution license="cc4" from="Microsoft" modified="false" />Specifies whether to search this member's inheritance chain to find the custom attributes. </param></Docs></Member><Member MemberName="GetCustomAttributes"><MemberSignature Language="C#" Value="public override object[] GetCustomAttributes (Type attributeType, bool inherit);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object[] GetCustomAttributes(class System.Type attributeType, bool inherit) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object[]</ReturnType></ReturnValue><Parameters><Parameter Name="attributeType" Type="System.Type" /><Parameter Name="inherit" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the custom attributes identified by the given type.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an array of objects representing the attributes of this method that are of type <paramref name="attributeType" />.</para></returns><param name="attributeType"><attribution license="cc4" from="Microsoft" modified="false" />The custom attribute type. </param><param name="inherit"><attribution license="cc4" from="Microsoft" modified="false" />Specifies whether to search this member's inheritance chain to find the custom attributes. </param></Docs></Member><Member MemberName="GetGenericArguments"><MemberSignature Language="C#" Value="public override Type[] GetGenericArguments ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Type[] GetGenericArguments() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type[]</ReturnType></ReturnValue><Parameters /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The type parameters of a generic method also are returned by the <see cref="M:System.Reflection.Emit.MethodBuilder.DefineGenericParameters(System.String[])" /> method that is used to define them.</para><para>For more information, see <see cref="P:System.Reflection.MethodInfo.IsGenericMethod" /> and <see cref="M:System.Reflection.MethodInfo.GetGenericArguments" />. For information on generic types, see <see cref="P:System.Type.IsGenericType" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects that represent the type parameters of the method, if it is generic.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects representing the type parameters, if the method is generic, or null if the method is not generic. </para></returns></Docs></Member><Member MemberName="GetGenericMethodDefinition"><MemberSignature Language="C#" Value="public override System.Reflection.MethodInfo GetGenericMethodDefinition ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Reflection.MethodInfo GetGenericMethodDefinition() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.MethodInfo</ReturnType></ReturnValue><Parameters /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> cannot be used to emit a constructed generic method directly. The emitted method is a generic method definition.</para><para>For more information, see <see cref="P:System.Reflection.MethodInfo.IsGenericMethod" /> and <see cref="M:System.Reflection.MethodInfo.GetGenericMethodDefinition" />. For information on generic types, see <see cref="P:System.Type.IsGenericType" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns this method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The current instance of <see cref="T:System.Reflection.Emit.MethodBuilder" />. </para></returns></Docs></Member><Member MemberName="GetHashCode"><MemberSignature Language="C#" Value="public override int GetHashCode ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the hash code for this method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The hash code for this method.</para></returns></Docs></Member><Member MemberName="GetILGenerator"><MemberSignature Language="C#" Value="public System.Reflection.Emit.ILGenerator GetILGenerator ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Reflection.Emit.ILGenerator GetILGenerator() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Emit.ILGenerator</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an ILGenerator for this method with a default Microsoft intermediate language (MSIL) stream size of 64 bytes.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an ILGenerator object for this method.</para></returns></Docs></Member><Member MemberName="GetILGenerator"><MemberSignature Language="C#" Value="public System.Reflection.Emit.ILGenerator GetILGenerator (int size);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Reflection.Emit.ILGenerator GetILGenerator(int32 size) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Emit.ILGenerator</ReturnType></ReturnValue><Parameters><Parameter Name="size" Type="System.Int32" /></Parameters><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an ILGenerator for this method with the specified Microsoft intermediate language (MSIL) stream size.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an ILGenerator object for this method.</para></returns><param name="size"><attribution license="cc4" from="Microsoft" modified="false" />The size of the MSIL stream, in bytes. </param></Docs></Member><Member MemberName="GetMethodImplementationFlags"><MemberSignature Language="C#" Value="public override System.Reflection.MethodImplAttributes GetMethodImplementationFlags ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance valuetype System.Reflection.MethodImplAttributes GetMethodImplementationFlags() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.MethodImplAttributes</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the implementation flags for the method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the implementation flags for the method.</para></returns></Docs></Member><Member MemberName="GetModule"><MemberSignature Language="C#" Value="public System.Reflection.Module GetModule ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Reflection.Module GetModule() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Module</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a reference to the module that contains this method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a reference to the module that contains this method.</para></returns></Docs></Member><Member MemberName="GetParameters"><MemberSignature Language="C#" Value="public override System.Reflection.ParameterInfo[] GetParameters ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Reflection.ParameterInfo[] GetParameters() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.ParameterInfo[]</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the parameters of this method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An array of ParameterInfo objects that represent the parameters of the method.</para></returns></Docs></Member><Member MemberName="GetToken"><MemberSignature Language="C#" Value="public System.Reflection.Emit.MethodToken GetToken ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype System.Reflection.Emit.MethodToken GetToken() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Emit.MethodToken</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the MethodToken that represents the token for this method.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the MethodToken of this method.</para></returns></Docs></Member><Member MemberName="InitLocals"><MemberSignature Language="C#" Value="public bool InitLocals { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance bool InitLocals" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters></Parameters><Docs><value>To be added: an object of type 'bool'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If this property is set to true, the emitted MSIL includes initialization of local variables. If it is set to false, local variables are not initialized and the generated code is unverifiable.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets a Boolean value that specifies whether the local variables in this method are zero initialized. The default value of this property is true.</para></summary></Docs></Member><Member MemberName="Invoke"><MemberSignature Language="C#" Value="public override object Invoke (object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] parameters, System.Globalization.CultureInfo culture);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object Invoke(object obj, valuetype System.Reflection.BindingFlags invokeAttr, class System.Reflection.Binder binder, object[] parameters, class System.Globalization.CultureInfo culture) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Object" /><Parameter Name="invokeAttr" Type="System.Reflection.BindingFlags" /><Parameter Name="binder" Type="System.Reflection.Binder" /><Parameter Name="parameters" Type="System.Object[]" /><Parameter Name="culture" Type="System.Globalization.CultureInfo" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the method is static, the <paramref name="obj" /> parameter is ignored. For non-static methods, <paramref name="obj" /> should be an instance of a class that inherits or declares the method and must be the same type as this class. If the method has no parameters, the value of <paramref name="parameters" /> should be null. Otherwise the number, type, and order of elements in the parameters array should be identical to the number, type, and order of parameters for the method reflected by this instance.</para><block subset="none" type="note"><para>Access restrictions are ignored for fully-trusted code. That is, private constructors, methods, fields, and properties can be accessed and invoked using Reflection whenever the code is fully-trusted.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>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.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns an object containing the return value of the invoked method.</para></returns><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />The object on which to invoke the specified method. If the method is static, this parameter is ignored. </param><param name="invokeAttr"><attribution license="cc4" from="Microsoft" modified="false" />This must be a bit flag from <see cref="T:System.Reflection.BindingFlags" /> : InvokeMethod, NonPublic, and so on. </param><param name="binder"><attribution license="cc4" from="Microsoft" modified="false" />An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If binder is null, the default binder is used. For more details, see <see cref="T:System.Reflection.Binder" />. </param><param name="parameters"><attribution license="cc4" from="Microsoft" modified="false" />An argument list. This is an array of arguments with the same number, order, and type as the parameters of the method to be invoked. If there are no parameters this should be null. </param><param name="culture"><attribution license="cc4" from="Microsoft" modified="false" />An instance of <see cref="T:System.Globalization.CultureInfo" /> used to govern the coercion of types. If this is null, the <see cref="T:System.Globalization.CultureInfo" /> for the current thread is used. (Note that this is necessary to, for example, convert a <see cref="T:System.String" /> that represents 1000 to a <see cref="T:System.Double" /> value, since 1000 is represented differently by different cultures.) </param></Docs></Member><Member MemberName="IsDefined"><MemberSignature Language="C#" Value="public override bool IsDefined (Type attributeType, bool inherit);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool IsDefined(class System.Type attributeType, bool inherit) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="attributeType" Type="System.Type" /><Parameter Name="inherit" Type="System.Boolean" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Checks if the specified custom attribute type is defined.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the specified custom attribute type is defined; otherwise, false.</para></returns><param name="attributeType"><attribution license="cc4" from="Microsoft" modified="false" />The custom attribute type. </param><param name="inherit"><attribution license="cc4" from="Microsoft" modified="false" />Specifies whether to search this member's inheritance chain to find the custom attributes. </param></Docs></Member><Member MemberName="IsGenericMethod"><MemberSignature Language="C#" Value="public override bool IsGenericMethod { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsGenericMethod" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A method is generic if it has type parameters. You can make a method generic by calling the <see cref="M:System.Reflection.Emit.MethodBuilder.DefineGenericParameters(System.String[])" /> method to add type parameters. This change cannot be reversed.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the method is a generic method.</para></summary></Docs></Member><Member MemberName="IsGenericMethodDefinition"><MemberSignature Language="C#" Value="public override bool IsGenericMethodDefinition { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsGenericMethodDefinition" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> can only be used to create generic method definitions; it cannot be used to create a constructed generic method directly. However, a subclass of <see cref="T:System.Reflection.Emit.MethodBuilder" /> might represent a constructed generic method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the current <see cref="T:System.Reflection.Emit.MethodBuilder" /> object represents the definition of a generic method.</para></summary></Docs></Member><Member MemberName="MakeGenericMethod"><MemberSignature Language="C#" Value="public override System.Reflection.MethodInfo MakeGenericMethod (Type[] typeArguments);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Reflection.MethodInfo MakeGenericMethod(class System.Type[] typeArguments) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.MethodInfo</ReturnType></ReturnValue><Parameters><Parameter Name="typeArguments" Type="System.Type[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When you are emitting dynamic code, you might need to emit a call to a method constructed from the generic method definition represented by a <see cref="T:System.Reflection.Emit.MethodBuilder" />, before the enclosing type has been completed. You can use the <see cref="M:System.Reflection.Emit.MethodBuilder.MakeGenericMethod(System.Type[])" /> method to create a <see cref="T:System.Reflection.MethodInfo" /> for such a constructed method, and use the <see cref="T:System.Reflection.MethodInfo" /> in the emitted call.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a generic method constructed from the current generic method definition using the specified generic type arguments.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.Reflection.MethodInfo" /> representing the generic method constructed from the current generic method definition using the specified generic type arguments.</para></returns><param name="typeArguments"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Type" /> objects that represent the type arguments for the generic method.</param></Docs></Member><Member MemberName="MethodHandle"><MemberSignature Language="C#" Value="public override RuntimeMethodHandle MethodHandle { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.RuntimeMethodHandle MethodHandle" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.RuntimeMethodHandle</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the internal handle for the method. Use this handle to access the underlying metadata handle.</para></summary></Docs></Member><Member MemberName="Module"><MemberSignature Language="C#" Value="public override System.Reflection.Module Module { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Reflection.Module Module" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.Module</ReturnType></ReturnValue><Docs><value>To be added.</value><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property is provided as a convenience. It is equivalent to using the <see cref="P:System.Reflection.Emit.MethodBuilder.DeclaringType" /> property to get the type in which the method is being declared, and then calling the <see cref="P:System.Type.Module" /> property of the resulting <see cref="T:System.Type" /> object.</para><para>This property is also equivalent to calling <see cref="M:System.Reflection.Emit.MethodBuilder.GetModule" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the module in which the current method is being defined.</para></summary></Docs></Member><Member MemberName="Name"><MemberSignature Language="C#" Value="public override string Name { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Name" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the name of this method.</para></summary></Docs></Member><Member MemberName="ReflectedType"><MemberSignature Language="C#" Value="public override Type ReflectedType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Type ReflectedType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the class that was used in reflection to obtain this object.</para></summary></Docs></Member><Member MemberName="ReturnParameter"><MemberSignature Language="C#" Value="public override System.Reflection.ParameterInfo ReturnParameter { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Reflection.ParameterInfo ReturnParameter" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.ParameterInfo</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Compiler designers can use the <see cref="T:System.Reflection.ParameterInfo" /> object returned by this property to discover whether custom modifiers, such as <see cref="T:Microsoft.VisualC.IsConstModifier" />, have been applied to the return type.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a <see cref="T:System.Reflection.ParameterInfo" /> object that contains information about the return type of the method, such as whether the return type has custom modifiers. </para></summary></Docs></Member><Member MemberName="ReturnType"><MemberSignature Language="C#" Value="public override Type ReturnType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Type ReturnType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Type</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><block subset="none" type="note"><para>Starting with the .NET Framework 2.0 and the .NET Compact Framework 2.0, this member is inherited from the base class, <see cref="T:System.Reflection.MethodInfo" />. See <see cref="P:System.Reflection.MethodInfo.ReturnType" />.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the return type of the method represented by this <see cref="T:System.Reflection.Emit.MethodBuilder" />.</para></summary></Docs></Member><Member MemberName="ReturnTypeCustomAttributes"><MemberSignature Language="C#" Value="public override System.Reflection.ICustomAttributeProvider ReturnTypeCustomAttributes { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Reflection.ICustomAttributeProvider ReturnTypeCustomAttributes" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Reflection.ICustomAttributeProvider</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method always returns null. Get the <see cref="T:System.Reflection.MethodInfo" /> after the containing <see cref="T:System.Type" /> has been created and invoked <see cref="P:System.Reflection.MethodInfo.ReturnTypeCustomAttributes" /> on the <see cref="T:System.Reflection.MethodInfo" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the custom attributes of the method's return type.</para></summary></Docs></Member><Member MemberName="SetCustomAttribute"><MemberSignature Language="C#" Value="public void SetCustomAttribute (System.Reflection.Emit.CustomAttributeBuilder customBuilder);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetCustomAttribute(class System.Reflection.Emit.CustomAttributeBuilder customBuilder) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="customBuilder" Type="System.Reflection.Emit.CustomAttributeBuilder" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="Overload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute" /> method can interact with the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method when the two methods are used in combination. See the Remarks section of the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method for details.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets a custom attribute using a custom attribute builder.</para></summary><param name="customBuilder"><attribution license="cc4" from="Microsoft" modified="false" />An instance of a helper class to describe the custom attribute. </param></Docs></Member><Member MemberName="SetCustomAttribute"><MemberSignature Language="C#" Value="public void SetCustomAttribute (System.Reflection.ConstructorInfo con, byte[] binaryAttribute);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetCustomAttribute(class System.Reflection.ConstructorInfo con, unsigned int8[] binaryAttribute) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="con" Type="System.Reflection.ConstructorInfo" /><Parameter Name="binaryAttribute" Type="System.Byte[]" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For details on how to format <paramref name="binaryAttribute" />, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see <see cref="http://go.microsoft.com/fwlink/?LinkID=99212">ECMA C# and Common Language Infrastructure Standards</see> on MSDN and <see cref="http://go.microsoft.com/fwlink/?LinkID=65552">Standard ECMA-335 - Common Language Infrastructure (CLI)</see> on the Ecma International Web site.</para><para>The <see cref="Overload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute" /> method can interact with the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method when the two methods are used in combination. See the Remarks section of the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method for details.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets a custom attribute using a specified custom attribute blob.</para></summary><param name="con"><attribution license="cc4" from="Microsoft" modified="false" />The constructor for the custom attribute. </param><param name="binaryAttribute"><attribution license="cc4" from="Microsoft" modified="false" />A byte blob representing the attributes. </param></Docs></Member><Member MemberName="SetImplementationFlags"><MemberSignature Language="C#" Value="public void SetImplementationFlags (System.Reflection.MethodImplAttributes attributes);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetImplementationFlags(valuetype System.Reflection.MethodImplAttributes attributes) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="attributes" Type="System.Reflection.MethodImplAttributes" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When you use the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method in combination with the <see cref="Overload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute" /> method, be aware of potential interactions. For example, using the <see cref="Overload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute" /> method to add the <see cref="T:System.Runtime.InteropServices.DllImportAttribute" /> attribute also sets the <see cref="F:System.Reflection.MethodImplAttributes.PreserveSig" /> flag. If you subsequently call the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method, the <see cref="F:System.Reflection.MethodImplAttributes.PreserveSig" /> flag is overwritten. There are two ways to avoid this:</para><list type="bullet"><item><para>Call the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method before you call the <see cref="Overload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute" /> method. The <see cref="Overload:System.Reflection.Emit.MethodBuilder.SetCustomAttribute" /> method always respects existing method implementation flags.</para></item><item><para>When you set implementation flags, call the <see cref="M:System.Reflection.Emit.MethodBuilder.GetMethodImplementationFlags" /> method to retrieve the existing flags, use bitwise OR to add your flag, and then call the <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the implementation flags for this method.</para></summary><param name="attributes"><attribution license="cc4" from="Microsoft" modified="false" />The implementation flags to set. </param></Docs></Member><Member MemberName="SetMarshal"><MemberSignature Language="C#" Value="public void SetMarshal (System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetMarshal(class System.Reflection.Emit.UnmanagedMarshal unmanagedMarshal) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Obsolete("An alternate API is available: Emit the MarshalAs custom attribute instead.")</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="unmanagedMarshal" Type="System.Reflection.Emit.UnmanagedMarshal" /></Parameters><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets marshaling information for the return type of this method.</para></summary><param name="unmanagedMarshal"><attribution license="cc4" from="Microsoft" modified="false" />Marshaling information for the return type of this method. </param></Docs></Member><Member MemberName="SetParameters"><MemberSignature Language="C#" Value="public void SetParameters (Type[] parameterTypes);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetParameters(class System.Type[] parameterTypes) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="parameterTypes" Type="System.Type[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the number and types of the parameters are known when the method is defined, they can be set using any overload of the <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineMethod" /> method that accepts an array of parameter types. However, a generic method can have parameters whose types are specified by one or more of its own generic type parameters, which cannot be defined until after the method has been defined. Use this method to set the parameter types in that case.</para><para>If the return type has optional or required custom modifiers, such as <see cref="T:System.Runtime.CompilerServices.IsConst" />, use the <see cref="M:System.Reflection.Emit.MethodBuilder.SetSignature(System.Type,System.Type[],System.Type[],System.Type[],System.Type[][],System.Type[][])" /> method overload.</para><para>Calling this method replaces any parameter types that were set using the <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineMethod" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the number and types of parameters for a method. </para></summary><param name="parameterTypes"><attribution license="cc4" from="Microsoft" modified="false" />An array of <see cref="T:System.Type" /> objects representing the parameter types.</param></Docs></Member><Member MemberName="SetReturnType"><MemberSignature Language="C#" Value="public void SetReturnType (Type returnType);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetReturnType(class System.Type returnType) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="returnType" Type="System.Type" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this method to set the return type of a generic method, when the return type is specified by one of the generic type parameters of the method. If the return type has optional or required custom modifiers, such as <see cref="T:System.Runtime.CompilerServices.IsConst" />, use the <see cref="M:System.Reflection.Emit.MethodBuilder.SetSignature(System.Type,System.Type[],System.Type[],System.Type[],System.Type[][],System.Type[][])" /> method overload. </para><para>Calling this method replaces a return type established using the <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineMethod" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Sets the return type of the method.</para></summary><param name="returnType"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Type" /> object that represents the return type of the method.</param></Docs></Member><Member MemberName="SetSignature"><MemberSignature Language="C#" Value="public void SetSignature (Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetSignature(class System.Type returnType, class System.Type[] returnTypeRequiredCustomModifiers, class System.Type[] returnTypeOptionalCustomModifiers, class System.Type[] parameterTypes, class System.Type[][] parameterTypeRequiredCustomModifiers, class System.Type[][] parameterTypeOptionalCustomModifiers) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="returnType" Type="System.Type" /><Parameter Name="returnTypeRequiredCustomModifiers" Type="System.Type[]" /><Parameter Name="returnTypeOptionalCustomModifiers" Type="System.Type[]" /><Parameter Name="parameterTypes" Type="System.Type[]" /><Parameter Name="parameterTypeRequiredCustomModifiers" Type="System.Type[][]" /><Parameter Name="parameterTypeOptionalCustomModifiers" Type="System.Type[][]" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>If the return type and the number and types of the parameters are known when the method is defined, they can be established using any overload of the <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineMethod" /> method that accepts an array of parameter types. However, a generic method can have parameters whose types are specified by one or more of its own generic type parameters, which cannot be defined until after the method has been defined. Use this method to set the parameter types in that case.</para><para>If neither the return type nor the parameter types have optional or required custom modifiers, such as <see cref="T:Microsoft.VisualC.IsConstModifier" />, you can use the <see cref="M:System.Reflection.Emit.MethodBuilder.SetReturnType(System.Type)" /> and <see cref="M:System.Reflection.Emit.MethodBuilder.SetParameters(System.Type[])" /> methods.</para><para>Calling this method replaces the parameters and return type established using the <see cref="Overload:System.Reflection.Emit.TypeBuilder.DefineMethod" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>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.</para></summary><param name="returnType"><attribution license="cc4" from="Microsoft" modified="false" />The return type of the method.</param><param name="returnTypeRequiredCustomModifiers"><attribution license="cc4" from="Microsoft" modified="false" />An array of types representing the required custom modifiers, such as <see cref="T:System.Runtime.CompilerServices.IsConst" />, for the return type of the method. If the return type has no required custom modifiers, specify null.</param><param name="returnTypeOptionalCustomModifiers"><attribution license="cc4" from="Microsoft" modified="false" />An array of types representing the optional custom modifiers, such as <see cref="T:System.Runtime.CompilerServices.IsConst" />, for the return type of the method. If the return type has no optional custom modifiers, specify null.</param><param name="parameterTypes"><attribution license="cc4" from="Microsoft" modified="false" />The types of the parameters of the method.</param><param name="parameterTypeRequiredCustomModifiers"><attribution license="cc4" from="Microsoft" modified="false" />An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter, such as <see cref="T:System.Runtime.CompilerServices.IsConst" />. If a particular parameter has no required custom modifiers, specify null instead of an array of types. If none of the parameters have required custom modifiers, specify null instead of an array of arrays.</param><param name="parameterTypeOptionalCustomModifiers"><attribution license="cc4" from="Microsoft" modified="false" />An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter, such as <see cref="T:System.Runtime.CompilerServices.IsConst" />. If a particular parameter has no optional custom modifiers, specify null instead of an array of types. If none of the parameters have optional custom modifiers, specify null instead of an array of arrays.</param></Docs></Member><Member MemberName="SetSymCustomAttribute"><MemberSignature Language="C#" Value="public void SetSymCustomAttribute (string name, byte[] data);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetSymCustomAttribute(string name, unsigned int8[] data) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="name" Type="System.String" /><Parameter Name="data" Type="System.Byte[]" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Unlike the metadata custom attribute, this custom attribute is associated with a symbol writer.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Set a symbolic custom attribute using a blob.</para></summary><param name="name"><attribution license="cc4" from="Microsoft" modified="false" />The name of the symbolic custom attribute. </param><param name="data"><attribution license="cc4" from="Microsoft" modified="false" />The byte blob that represents the value of the symbolic custom attribute. </param></Docs></Member><Member MemberName="Signature"><MemberSignature Language="C#" Value="public string Signature { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Signature" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'string'</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the signature of the method.</para></summary></Docs></Member><Member MemberName="System.Runtime.InteropServices._MethodBuilder.GetIDsOfNames"><MemberSignature Language="C#" Value="void _MethodBuilder.GetIDsOfNames (ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._MethodBuilder.GetIDsOfNames(valuetype System.Guid riid, native int rgszNames, unsigned int32 cNames, unsigned int32 lcid, native int rgDispId) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="riid" Type="System.Guid&amp;" RefType="ref" /><Parameter Name="rgszNames" Type="System.IntPtr" /><Parameter Name="cNames" Type="System.UInt32" /><Parameter Name="lcid" Type="System.UInt32" /><Parameter Name="rgDispId" Type="System.IntPtr" /></Parameters><Docs><param name="riid">To be added.</param><param name="rgszNames">To be added.</param><param name="cNames">To be added.</param><param name="lcid">To be added.</param><param name="rgDispId">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="System.Runtime.InteropServices._MethodBuilder.GetTypeInfo"><MemberSignature Language="C#" Value="void _MethodBuilder.GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._MethodBuilder.GetTypeInfo(unsigned int32 iTInfo, unsigned int32 lcid, native int ppTInfo) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="iTInfo" Type="System.UInt32" /><Parameter Name="lcid" Type="System.UInt32" /><Parameter Name="ppTInfo" Type="System.IntPtr" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method is for access to managed classes from unmanaged code, and should not be called from managed code. For more information about <unmanagedCodeEntityReference>IDispatch::GetTypeInfo</unmanagedCodeEntityReference>, see the MSDN Library.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Retrieves the type information for an object, which can then be used to get the type information for an interface.</para></summary><param name="iTInfo"><attribution license="cc4" from="Microsoft" modified="false" />The type information to return.</param><param name="lcid"><attribution license="cc4" from="Microsoft" modified="false" />The locale identifier for the type information.</param><param name="ppTInfo"><attribution license="cc4" from="Microsoft" modified="false" />Receives a pointer to the requested type information object.</param></Docs></Member><Member MemberName="System.Runtime.InteropServices._MethodBuilder.GetTypeInfoCount"><MemberSignature Language="C#" Value="void _MethodBuilder.GetTypeInfoCount (out uint pcTInfo);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._MethodBuilder.GetTypeInfoCount(unsigned int32 pcTInfo) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="pcTInfo" Type="System.UInt32&amp;" RefType="out" /></Parameters><Docs><param name="pcTInfo">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="System.Runtime.InteropServices._MethodBuilder.Invoke"><MemberSignature Language="C#" Value="void _MethodBuilder.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.InteropServices._MethodBuilder.Invoke(unsigned int32 dispIdMember, valuetype System.Guid riid, unsigned int32 lcid, int16 wFlags, native int pDispParams, native int pVarResult, native int pExcepInfo, native int puArgErr) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="dispIdMember" Type="System.UInt32" /><Parameter Name="riid" Type="System.Guid&amp;" RefType="ref" /><Parameter Name="lcid" Type="System.UInt32" /><Parameter Name="wFlags" Type="System.Int16" /><Parameter Name="pDispParams" Type="System.IntPtr" /><Parameter Name="pVarResult" Type="System.IntPtr" /><Parameter Name="pExcepInfo" Type="System.IntPtr" /><Parameter Name="puArgErr" Type="System.IntPtr" /></Parameters><Docs><param name="dispIdMember">To be added.</param><param name="riid">To be added.</param><param name="lcid">To be added.</param><param name="wFlags">To be added.</param><param name="pDispParams">To be added.</param><param name="pVarResult">To be added.</param><param name="pExcepInfo">To be added.</param><param name="puArgErr">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns this MethodBuilder instance as a string.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a string containing the name, attributes, method signature, exceptions, and local signature of this method followed by the current Microsoft intermediate language (MSIL) stream.</para></returns></Docs></Member></Members></Type>