<param name="name">The name of the dynamic module.</param>
<returns>A <see cref="T:System.Reflection.Emit.ModuleBuilder" /> representing the defined dynamic module.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="name" /> begins with white space.
--or-
-The length of <paramref name="name" /> is zero.
--or-
+ <paramref name="name" /> begins with white space.
+-or-
+The length of <paramref name="name" /> is zero.
+-or-
The length of <paramref name="name" /> is greater than the system-defined maximum length.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
- <exception cref="T:System.ExecutionEngineException">The assembly for default symbol writer cannot be loaded.
- -or-
- The type that implements the default symbol writer interface cannot be found.</exception>
+ <exception cref="T:System.ExecutionEngineException">The assembly for default symbol writer cannot be loaded.
+-or-
+The type that implements the default symbol writer interface cannot be found.</exception>
</member>
<member name="P:System.Reflection.Emit.AssemblyBuilder.EntryPoint">
<summary>Returns the entry point of this assembly.</summary>
<member name="M:System.Reflection.Emit.ConstructorBuilder.GetILGenerator">
<summary>Gets an <see cref="T:System.Reflection.Emit.ILGenerator" /> for this constructor.</summary>
<returns>An <see cref="T:System.Reflection.Emit.ILGenerator" /> object for this constructor.</returns>
- <exception cref="T:System.InvalidOperationException">The constructor is a parameterless constructor.
- -or-
- The constructor has <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags indicating that it should not have a method body.</exception>
+ <exception cref="T:System.InvalidOperationException">The constructor is a parameterless constructor.
+-or-
+The constructor has <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags indicating that it should not have a method body.</exception>
</member>
<member name="M:System.Reflection.Emit.ConstructorBuilder.GetILGenerator(System.Int32)">
<summary>Gets an <see cref="T:System.Reflection.Emit.ILGenerator" /> object, with the specified MSIL stream size, that can be used to build a method body for this constructor.</summary>
<param name="streamSize">The size of the MSIL stream, in bytes.</param>
<returns>An <see cref="T:System.Reflection.Emit.ILGenerator" /> for this constructor.</returns>
- <exception cref="T:System.InvalidOperationException">The constructor is a parameterless constructor.
- -or-
- The constructor has <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags indicating that it should not have a method body.</exception>
+ <exception cref="T:System.InvalidOperationException">The constructor is a parameterless constructor.
+-or-
+The constructor has <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags indicating that it should not have a method body.</exception>
</member>
<member name="M:System.Reflection.Emit.ConstructorBuilder.GetMethodImplementationFlags">
<summary>Returns the method implementation flags for this constructor.</summary>
<member name="M:System.Reflection.Emit.EnumBuilder.GetNestedType(System.String,System.Reflection.BindingFlags)">
<summary>Returns the specified nested type that is declared by this type.</summary>
<param name="name">The <see cref="T:System.String" /> containing the name of the nested type to get.</param>
- <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.
- -or-
- Zero, to conduct a case-sensitive search for public methods.</param>
+ <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.
+-or-
+Zero, to conduct a case-sensitive search for public methods.</param>
<returns>A <see cref="T:System.Type" /> object representing the nested type that matches the specified requirements, if found; otherwise, <see langword="null" />.</returns>
<exception cref="T:System.NotSupportedException">This method is not currently supported in types that are not complete.</exception>
</member>
<member name="M:System.Reflection.Emit.EnumBuilder.GetNestedTypes(System.Reflection.BindingFlags)">
<summary>Returns the public and non-public nested types that are declared or inherited by this type.</summary>
<param name="bindingAttr">This must be a bit flag from <see cref="T:System.Reflection.BindingFlags" />, such as <see langword="InvokeMethod" />, <see langword="NonPublic" />, and so on.</param>
- <returns>An array of <see cref="T:System.Type" /> objects representing all the types nested within the current <see cref="T:System.Type" /> that match the specified binding constraints.
- An empty array of type <see cref="T:System.Type" />, if no types are nested within the current <see cref="T:System.Type" />, or if none of the nested types match the binding constraints.</returns>
+ <returns>An array of <see cref="T:System.Type" /> objects representing all the types nested within the current <see cref="T:System.Type" /> that match the specified binding constraints.
+An empty array of type <see cref="T:System.Type" />, if no types are nested within the current <see cref="T:System.Type" />, or if none of the nested types match the binding constraints.</returns>
<exception cref="T:System.NotSupportedException">This method is not currently supported in types that are not complete.</exception>
</member>
<member name="M:System.Reflection.Emit.EnumBuilder.GetProperties(System.Reflection.BindingFlags)">
<summary>Sets the default value of this field.</summary>
<param name="defaultValue">The new default value for this field.</param>
<exception cref="T:System.InvalidOperationException">The containing type has been created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
- <exception cref="T:System.ArgumentException">The field is not one of the supported types.
- -or-
- The type of <paramref name="defaultValue" /> does not match the type of the field.
- -or-
- The field is of type <see cref="T:System.Object" /> or other reference type, <paramref name="defaultValue" /> is not <see langword="null" />, and the value cannot be assigned to the reference type.</exception>
+ <exception cref="T:System.ArgumentException">The field is not one of the supported types.
+-or-
+The type of <paramref name="defaultValue" /> does not match the type of the field.
+-or-
+The field is of type <see cref="T:System.Object" /> or other reference type, <paramref name="defaultValue" /> is not <see langword="null" />, and the value cannot be assigned to the reference type.</exception>
</member>
<member name="M:System.Reflection.Emit.FieldBuilder.SetCustomAttribute(System.Reflection.ConstructorInfo,System.Byte[])">
<summary>Sets a custom attribute using a specified custom attribute blob.</summary>
<param name="con">The constructor for the custom attribute.</param>
<param name="binaryAttribute">A byte blob representing the attribute.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="con" /> is <see langword="null" />.
--or-
+ <paramref name="con" /> is <see langword="null" />.
+-or-
<paramref name="binaryAttribute" /> is a null reference.</exception>
</member>
<member name="M:System.Reflection.Emit.GenericTypeParameterBuilder.SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder)">
<summary>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.</summary>
<param name="names">An array of strings that represent the names of the generic type parameters.</param>
<returns>An array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects representing the type parameters of the generic method.</returns>
- <exception cref="T:System.InvalidOperationException">Generic type parameters have already been defined for this method.
- -or-
- The method has been completed already.
- -or-
- The <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method has been called for the current method.</exception>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="names" /> is <see langword="null" />.
--or-
+ <exception cref="T:System.InvalidOperationException">Generic type parameters have already been defined for this method.
+-or-
+The method has been completed already.
+-or-
+The <see cref="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)" /> method has been called for the current method.</exception>
+ <exception cref="T:System.ArgumentNullException">
+ <paramref name="names" /> is <see langword="null" />.
+-or-
An element of <paramref name="names" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="names" /> is an empty array.</exception>
<param name="attributes">The parameter attributes of the parameter.</param>
<param name="strParamName">The name of the parameter. The name can be the null string.</param>
<returns>Returns a <see langword="ParameterBuilder" /> object that represents a parameter of this method or the return value of this method.</returns>
- <exception cref="T:System.ArgumentOutOfRangeException">The method has no parameters.
- -or-
- <paramref name="position" /> is less than zero.
- -or-
- <paramref name="position" /> is greater than the number of the method's parameters.</exception>
- <exception cref="T:System.InvalidOperationException">The containing type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current method, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The method has no parameters.
+-or-
+<paramref name="position" /> is less than zero.
+-or-
+<paramref name="position" /> is greater than the number of the method's parameters.</exception>
+ <exception cref="T:System.InvalidOperationException">The containing type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current method, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.MethodBuilder.Equals(System.Object)">
<summary>Determines whether the given object is equal to this instance.</summary>
<member name="M:System.Reflection.Emit.MethodBuilder.GetILGenerator">
<summary>Returns an <see langword="ILGenerator" /> for this method with a default Microsoft intermediate language (MSIL) stream size of 64 bytes.</summary>
<returns>Returns an <see langword="ILGenerator" /> object for this method.</returns>
- <exception cref="T:System.InvalidOperationException">The method should not have a body because of its <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags, for example because it has the <see cref="F:System.Reflection.MethodAttributes.PinvokeImpl" /> flag.
- -or-
- The method is a generic method, but not a generic method definition. That is, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The method should not have a body because of its <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags, for example because it has the <see cref="F:System.Reflection.MethodAttributes.PinvokeImpl" /> flag.
+-or-
+The method is a generic method, but not a generic method definition. That is, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.MethodBuilder.GetILGenerator(System.Int32)">
<summary>Returns an <see langword="ILGenerator" /> for this method with the specified Microsoft intermediate language (MSIL) stream size.</summary>
<param name="size">The size of the MSIL stream, in bytes.</param>
<returns>Returns an <see langword="ILGenerator" /> object for this method.</returns>
- <exception cref="T:System.InvalidOperationException">The method should not have a body because of its <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags, for example because it has the <see cref="F:System.Reflection.MethodAttributes.PinvokeImpl" /> flag.
- -or-
- The method is a generic method, but not a generic method definition. That is, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The method should not have a body because of its <see cref="T:System.Reflection.MethodAttributes" /> or <see cref="T:System.Reflection.MethodImplAttributes" /> flags, for example because it has the <see cref="F:System.Reflection.MethodAttributes.PinvokeImpl" /> flag.
+-or-
+The method is a generic method, but not a generic method definition. That is, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.MethodBuilder.GetMethodImplementationFlags">
<summary>Returns the implementation flags for the method.</summary>
<member name="M:System.Reflection.Emit.MethodBuilder.SetImplementationFlags(System.Reflection.MethodImplAttributes)">
<summary>Sets the implementation flags for this method.</summary>
<param name="attributes">The implementation flags to set.</param>
- <exception cref="T:System.InvalidOperationException">The containing type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current method, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The containing type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current method, the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethod" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.MethodBuilder.IsGenericMethodDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.MethodBuilder.SetParameters(System.Type[])">
<summary>Sets the number and types of parameters for a method.</summary>
<param name="visibility">The type attributes for the enumeration. The attributes are any bits defined by <see cref="F:System.Reflection.TypeAttributes.VisibilityMask" />.</param>
<param name="underlyingType">The underlying type for the enumeration. This must be a built-in integer type.</param>
<returns>The defined enumeration.</returns>
- <exception cref="T:System.ArgumentException">Attributes other than visibility attributes are provided.
- -or-
- An enumeration with the given name exists in the parent assembly of this module.
- -or-
- The visibility attributes do not match the scope of the enumeration. For example, <see cref="F:System.Reflection.TypeAttributes.NestedPublic" /> is specified for <paramref name="visibility" />, but the enumeration is not a nested type.</exception>
+ <exception cref="T:System.ArgumentException">Attributes other than visibility attributes are provided.
+-or-
+An enumeration with the given name exists in the parent assembly of this module.
+-or-
+The visibility attributes do not match the scope of the enumeration. For example, <see cref="F:System.Reflection.TypeAttributes.NestedPublic" /> is specified for <paramref name="visibility" />, but the enumeration is not a nested type.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="returnType">The return type of the method.</param>
<param name="parameterTypes">The types of the method's parameters.</param>
<returns>The defined global method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static. That is, <paramref name="attributes" /> does not include <see cref="F:System.Reflection.MethodAttributes.Static" />.
- -or-
- An element in the <see cref="T:System.Type" /> array is <see langword="null" />.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static. That is, <paramref name="attributes" /> does not include <see cref="F:System.Reflection.MethodAttributes.Static" />.
+-or-
+An element in the <see cref="T:System.Type" /> array is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">
<param name="requiredParameterTypeCustomModifiers">An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter of the global method. If a particular argument has no required custom modifiers, specify <see langword="null" /> instead of an array of types. If the global method has no arguments, or if none of the arguments have required custom modifiers, specify <see langword="null" /> instead of an array of arrays.</param>
<param name="optionalParameterTypeCustomModifiers">An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter. If a particular argument has no optional custom modifiers, specify <see langword="null" /> instead of an array of types. If the global method has no arguments, or if none of the arguments have optional custom modifiers, specify <see langword="null" /> instead of an array of arrays.</param>
<returns>The defined global method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static. That is, <paramref name="attributes" /> does not include <see cref="F:System.Reflection.MethodAttributes.Static" />.
- -or-
- An element in the <see cref="T:System.Type" /> array is <see langword="null" />.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static. That is, <paramref name="attributes" /> does not include <see cref="F:System.Reflection.MethodAttributes.Static" />.
+-or-
+An element in the <see cref="T:System.Type" /> array is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="M:System.Reflection.Emit.ModuleBuilder.CreateGlobalFunctions" /> method has been previously called.</exception>
<param name="returnType">The return type of the method.</param>
<param name="parameterTypes">The types of the method's parameters.</param>
<returns>The defined global method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static. That is, <paramref name="attributes" /> does not include <see cref="F:System.Reflection.MethodAttributes.Static" />.
- -or-
- The length of <paramref name="name" /> is zero
- -or-
- An element in the <see cref="T:System.Type" /> array is <see langword="null" />.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static. That is, <paramref name="attributes" /> does not include <see cref="F:System.Reflection.MethodAttributes.Static" />.
+-or-
+The length of <paramref name="name" /> is zero
+-or-
+An element in the <see cref="T:System.Type" /> array is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">
<param name="data">The binary large object (BLOB) of data.</param>
<param name="attributes">The attributes for the field. The default is <see langword="Static" />.</param>
<returns>A field to reference the data.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- The size of <paramref name="data" /> is less than or equal to zero or greater than or equal to 0x3f0000.</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+The size of <paramref name="data" /> is less than or equal to zero or greater than or equal to 0x3f0000.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> or <paramref name="data" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">
<param name="nativeCallConv">The native calling convention.</param>
<param name="nativeCharSet">The method's native character set.</param>
<returns>The defined <see langword="PInvoke" /> method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static or if the containing type is an interface.
- -or-
- The method is abstract.
- -or-
- The method was previously defined.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static or if the containing type is an interface.
+-or-
+The method is abstract.
+-or-
+The method was previously defined.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> or <paramref name="dllName" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The containing type has been previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" /></exception>
<summary>Constructs a <see langword="TypeBuilder" /> for a private type with the specified name in this module.</summary>
<param name="name">The full path of the type, including the namespace. <paramref name="name" /> cannot contain embedded nulls.</param>
<returns>A private type with the specified name.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="name">The full path of the type. <paramref name="name" /> cannot contain embedded nulls.</param>
<param name="attr">The attributes of the defined type.</param>
<returns>A <see langword="TypeBuilder" /> created with all of the requested attributes.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="attr">The attribute to be associated with the type.</param>
<param name="parent">The type that the defined type extends.</param>
<returns>A <see langword="TypeBuilder" /> created with all of the requested attributes.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="parent">The type that the defined type extends.</param>
<param name="typesize">The total size of the type.</param>
<returns>A <see langword="TypeBuilder" /> object.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="parent">The type that the defined type extends.</param>
<param name="packsize">The packing size of the type.</param>
<returns>A <see langword="TypeBuilder" /> object.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="packingSize">The packing size of the type.</param>
<param name="typesize">The total size of the type.</param>
<returns>A <see langword="TypeBuilder" /> created with all of the requested attributes.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="parent">The type that the defined type extends.</param>
<param name="interfaces">The list of interfaces that the type implements.</param>
<returns>A <see langword="TypeBuilder" /> created with all of the requested attributes.</returns>
- <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
- -or-
- Nested type attributes are set on a type that is not nested.</exception>
+ <exception cref="T:System.ArgumentException">A type with the given name exists in the parent assembly of this module.
+-or-
+Nested type attributes are set on a type that is not nested.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="size">The size of the data field.</param>
<param name="attributes">The attributes for the field.</param>
<returns>A field to reference the data.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- <paramref name="size" /> is less than or equal to zero, or greater than or equal to 0x003f0000.</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+<paramref name="size" /> is less than or equal to zero, or greater than or equal to 0x003f0000.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">
<param name="genericMethodArguments">An array of <see cref="T:System.Type" /> objects representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.</param>
<returns>A <see cref="T:System.Reflection.FieldInfo" /> object representing the field that is identified by the specified metadata token.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="metadataToken" /> is not a token for a field in the scope of the current module.
--or-
+ <paramref name="metadataToken" /> is not a token for a field in the scope of the current module.
+-or-
<paramref name="metadataToken" /> identifies a field whose parent <see langword="TypeSpec" /> has a signature containing element type <see langword="var" /> (a type parameter of a generic type) or <see langword="mvar" /> (a type parameter of a generic method), and the necessary generic type arguments were not supplied for either or both of <paramref name="genericTypeArguments" /> and <paramref name="genericMethodArguments" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="metadataToken" /> is not a valid token in the scope of the current module.</exception>
<param name="genericMethodArguments">An array of <see cref="T:System.Type" /> objects representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.</param>
<returns>A <see cref="T:System.Reflection.MemberInfo" /> object representing the type or member that is identified by the specified metadata token.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="metadataToken" /> is not a token for a type or member in the scope of the current module.
--or-
-<paramref name="metadataToken" /> is a <see langword="MethodSpec" /> or <see langword="TypeSpec" /> whose signature contains element type <see langword="var" /> (a type parameter of a generic type) or <see langword="mvar" /> (a type parameter of a generic method), and the necessary generic type arguments were not supplied for either or both of <paramref name="genericTypeArguments" /> and <paramref name="genericMethodArguments" />.
--or-
+ <paramref name="metadataToken" /> is not a token for a type or member in the scope of the current module.
+-or-
+<paramref name="metadataToken" /> is a <see langword="MethodSpec" /> or <see langword="TypeSpec" /> whose signature contains element type <see langword="var" /> (a type parameter of a generic type) or <see langword="mvar" /> (a type parameter of a generic method), and the necessary generic type arguments were not supplied for either or both of <paramref name="genericTypeArguments" /> and <paramref name="genericMethodArguments" />.
+-or-
<paramref name="metadataToken" /> identifies a property or event.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="metadataToken" /> is not a valid token in the scope of the current module.</exception>
<param name="genericMethodArguments">An array of <see cref="T:System.Type" /> objects representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.</param>
<returns>A <see cref="T:System.Reflection.MethodBase" /> object representing the method that is identified by the specified metadata token.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="metadataToken" /> is not a token for a method or constructor in the scope of the current module.
--or-
+ <paramref name="metadataToken" /> is not a token for a method or constructor in the scope of the current module.
+-or-
<paramref name="metadataToken" /> is a <see langword="MethodSpec" /> whose signature contains element type <see langword="var" /> (a type parameter of a generic type) or <see langword="mvar" /> (a type parameter of a generic method), and the necessary generic type arguments were not supplied for either or both of <paramref name="genericTypeArguments" /> and <paramref name="genericMethodArguments" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="metadataToken" /> is not a valid token in the scope of the current module.</exception>
<param name="genericMethodArguments">An array of <see cref="T:System.Type" /> objects representing the generic type arguments of the method where the token is in scope, or <see langword="null" /> if that method is not generic.</param>
<returns>A <see cref="T:System.Type" /> object representing the type that is identified by the specified metadata token.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="metadataToken" /> is not a token for a type in the scope of the current module.
--or-
+ <paramref name="metadataToken" /> is not a token for a type in the scope of the current module.
+-or-
<paramref name="metadataToken" /> is a <see langword="TypeSpec" /> whose signature contains element type <see langword="var" /> (a type parameter of a generic type) or <see langword="mvar" /> (a type parameter of a generic method), and the necessary generic type arguments were not supplied for either or both of <paramref name="genericTypeArguments" /> and <paramref name="genericMethodArguments" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="metadataToken" /> is not a valid token in the scope of the current module.</exception>
<member name="M:System.Reflection.Emit.PropertyBuilder.GetSetMethod(System.Boolean)">
<summary>Returns the set accessor for this property.</summary>
<param name="nonPublic">Indicates whether the accessor should be returned if it is non-public. <see langword="true" /> if non-public methods are to be included; otherwise, <see langword="false" />.</param>
- <returns>The property's <see langword="Set" /> method, or <see langword="null" />, as shown in the following table.
+ <returns>The property's <see langword="Set" /> method, or <see langword="null" />, as shown in the following table.
Value
-
+
Condition
-
+
A <see cref="T:System.Reflection.MethodInfo" /> object representing the Set method for this property.
-
+
The set accessor is public.
-
+
<paramref name="nonPublic" /> is true and non-public methods can be returned.
-
+
null
-
+
<paramref name="nonPublic" /> is true, but the property is read-only.
-
+
<paramref name="nonPublic" /> is false and the set accessor is non-public.</returns>
</member>
<member name="M:System.Reflection.Emit.PropertyBuilder.GetValue(System.Object,System.Object[])">
<param name="defaultValue">The default value of this property.</param>
<exception cref="T:System.InvalidOperationException">
<see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" /> has been called on the enclosing type.</exception>
- <exception cref="T:System.ArgumentException">The property is not one of the supported types.
- -or-
- The type of <paramref name="defaultValue" /> does not match the type of the property.
- -or-
- The property is of type <see cref="T:System.Object" /> or other reference type, <paramref name="defaultValue" /> is not <see langword="null" />, and the value cannot be assigned to the reference type.</exception>
+ <exception cref="T:System.ArgumentException">The property is not one of the supported types.
+-or-
+The type of <paramref name="defaultValue" /> does not match the type of the property.
+-or-
+The property is of type <see cref="T:System.Object" /> or other reference type, <paramref name="defaultValue" /> is not <see langword="null" />, and the value cannot be assigned to the reference type.</exception>
</member>
<member name="M:System.Reflection.Emit.PropertyBuilder.SetCustomAttribute(System.Reflection.ConstructorInfo,System.Byte[])">
<summary>Set a custom attribute using a specified custom attribute blob.</summary>
<member name="M:System.Reflection.Emit.TypeBuilder.CreateType">
<summary>Creates a <see cref="T:System.Type" /> object for the class. After defining fields and methods on the class, <see langword="CreateType" /> is called in order to load its <see langword="Type" /> object.</summary>
<returns>Returns the new <see cref="T:System.Type" /> object for this class.</returns>
- <exception cref="T:System.InvalidOperationException">The enclosing type has not been created.
- -or-
- This type is non-abstract and contains an abstract method.
- -or-
- This type is not an abstract class or an interface and has a method without a method body.</exception>
- <exception cref="T:System.NotSupportedException">The type contains invalid Microsoft intermediate language (MSIL) code.
- -or-
- The branch target is specified using a 1-byte offset, but the target is at a distance greater than 127 bytes from the branch.</exception>
+ <exception cref="T:System.InvalidOperationException">The enclosing type has not been created.
+-or-
+This type is non-abstract and contains an abstract method.
+-or-
+This type is not an abstract class or an interface and has a method without a method body.</exception>
+ <exception cref="T:System.ArgumentException">Bad label content in <see cref="T:System.Reflection.Emit.ILGenerator" />: You have defined a label without calling <see cref="M:System.Reflection.Emit.ILGenerator.MarkLabel(System.Reflection.Emit.Label)" />.</exception>
+ <exception cref="T:System.NotSupportedException">The type contains invalid Microsoft intermediate language (MSIL) code.
+-or-
+The branch target is specified using a 1-byte offset, but the target is at a distance greater than 127 bytes from the branch.</exception>
<exception cref="T:System.TypeLoadException">The type cannot be loaded. For example, it contains a <see langword="static" /> method that has the calling convention <see cref="F:System.Reflection.CallingConventions.HasThis" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.CreateTypeInfo">
<param name="optionalCustomModifiers">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 <see langword="null" /> instead of an array of types. If none of the parameters have optional custom modifiers, specify <see langword="null" /> instead of an array of arrays.</param>
<returns>The defined constructor.</returns>
<exception cref="T:System.ArgumentException">The size of <paramref name="requiredCustomModifiers" /> or <paramref name="optionalCustomModifiers" /> does not equal the size of <paramref name="parameterTypes" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineDefaultConstructor(System.Reflection.MethodAttributes)">
<summary>Defines the parameterless constructor. The constructor defined here will simply call the parameterless constructor of the parent.</summary>
<param name="attributes">A <see langword="MethodAttributes" /> object representing the attributes to be applied to the constructor.</param>
<returns>Returns the constructor.</returns>
<exception cref="T:System.NotSupportedException">The parent type (base type) does not have a parameterless constructor.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineEvent(System.String,System.Reflection.EventAttributes,System.Type)">
<summary>Adds a new event to the type, with the given name, attributes and event type.</summary>
<returns>The defined event.</returns>
<exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="name" /> is <see langword="null" />.
--or-
+ <paramref name="name" /> is <see langword="null" />.
+-or-
<paramref name="eventtype" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
</member>
<param name="type">The type of the field</param>
<param name="attributes">The attributes of the field.</param>
<returns>The defined field.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="fieldName" /> is zero.
- -or-
- <paramref name="type" /> is System.Void.
- -or-
- A total size was specified for the parent class of this field.</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="fieldName" /> is zero.
+-or-
+<paramref name="type" /> is System.Void.
+-or-
+A total size was specified for the parent class of this field.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="fieldName" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
<param name="optionalCustomModifiers">An array of types representing the optional custom modifiers for the field, such as <see cref="T:Microsoft.VisualC.IsConstModifier" />.</param>
<param name="attributes">The attributes of the field.</param>
<returns>The defined field.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="fieldName" /> is zero.
- -or-
- <paramref name="type" /> is System.Void.
- -or-
- A total size was specified for the parent class of this field.</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="fieldName" /> is zero.
+-or-
+<paramref name="type" /> is System.Void.
+-or-
+A total size was specified for the parent class of this field.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="fieldName" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
<returns>An array of <see cref="T:System.Reflection.Emit.GenericTypeParameterBuilder" /> objects that can be used to define the constraints of the generic type parameters for the current type.</returns>
<exception cref="T:System.InvalidOperationException">Generic type parameters have already been defined for this type.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="names" /> is <see langword="null" />.
--or-
+ <paramref name="names" /> is <see langword="null" />.
+-or-
An element of <paramref name="names" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="names" /> is an empty array.</exception>
<param name="data">The blob of data.</param>
<param name="attributes">The attributes for the field.</param>
<returns>A field to reference the data.</returns>
- <exception cref="T:System.ArgumentException">Length of <paramref name="name" /> is zero.
- -or-
- The size of the data is less than or equal to zero, or greater than or equal to 0x3f0000.</exception>
+ <exception cref="T:System.ArgumentException">Length of <paramref name="name" /> is zero.
+-or-
+The size of the data is less than or equal to zero, or greater than or equal to 0x3f0000.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> or <paramref name="data" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">
<param name="name">The name of the method. <paramref name="name" /> cannot contain embedded nulls.</param>
<param name="attributes">The attributes of the method.</param>
<returns>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> representing the newly defined method.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineMethod(System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions)">
<summary>Adds a new method to the type, with the specified name, method attributes, and calling convention.</summary>
<param name="attributes">The attributes of the method.</param>
<param name="callingConvention">The calling convention of the method.</param>
<returns>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> representing the newly defined method.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- The type of the parent of this method is an interface and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+The type of the parent of this method is an interface and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineMethod(System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[])">
<summary>Adds a new method to the type, with the specified name, method attributes, calling convention, and method signature.</summary>
<param name="returnType">The return type of the method.</param>
<param name="parameterTypes">The types of the parameters of the method.</param>
<returns>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> representing the newly defined method.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineMethod(System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[],System.Type[],System.Type[],System.Type[][],System.Type[][])">
<summary>Adds a new method to the type, with the specified name, method attributes, calling convention, method signature, and custom modifiers.</summary>
<param name="parameterTypeRequiredCustomModifiers">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 <see langword="null" /> instead of an array of types. If none of the parameters have required custom modifiers, specify <see langword="null" /> instead of an array of arrays.</param>
<param name="parameterTypeOptionalCustomModifiers">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 <see langword="null" /> instead of an array of types. If none of the parameters have optional custom modifiers, specify <see langword="null" /> instead of an array of arrays.</param>
<returns>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> object representing the newly added method.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).
- -or-
- The size of <paramref name="parameterTypeRequiredCustomModifiers" /> or <paramref name="parameterTypeOptionalCustomModifiers" /> does not equal the size of <paramref name="parameterTypes" />.</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).
+-or-
+The size of <paramref name="parameterTypeRequiredCustomModifiers" /> or <paramref name="parameterTypeOptionalCustomModifiers" /> does not equal the size of <paramref name="parameterTypes" />.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineMethod(System.String,System.Reflection.MethodAttributes,System.Type,System.Type[])">
<summary>Adds a new method to the type, with the specified name, method attributes, and method signature.</summary>
<param name="returnType">The return type of the method.</param>
<param name="parameterTypes">The types of the parameters of the method.</param>
<returns>The defined method.</returns>
- <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
- -or-
- The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
+ <exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.
+-or-
+The type of the parent of this method is an interface, and this method is not virtual (<see langword="Overridable" /> in Visual Basic).</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineMethodOverride(System.Reflection.MethodInfo,System.Reflection.MethodInfo)">
<summary>Specifies a given method body that implements a given method declaration, potentially with a different name.</summary>
<paramref name="methodInfoBody" /> does not belong to this class.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="methodInfoBody" /> or <paramref name="methodInfoDeclaration" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- The declaring type of <paramref name="methodInfoBody" /> is not the type represented by this <see cref="T:System.Reflection.Emit.TypeBuilder" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+The declaring type of <paramref name="methodInfoBody" /> is not the type represented by this <see cref="T:System.Reflection.Emit.TypeBuilder" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineNestedType(System.String)">
<summary>Defines a nested type, given its name.</summary>
<param name="name">The short name of the type. <paramref name="name" /> cannot contain embedded nulls.</param>
<returns>The defined nested type.</returns>
- <exception cref="T:System.ArgumentException">Length of <paramref name="name" /> is zero or greater than 1023.
- -or-
- This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
+ <exception cref="T:System.ArgumentException">Length of <paramref name="name" /> is zero or greater than 1023.
+-or-
+This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="name">The short name of the type. <paramref name="name" /> cannot contain embedded nulls.</param>
<param name="attr">The attributes of the type.</param>
<returns>The defined nested type.</returns>
- <exception cref="T:System.ArgumentException">The nested attribute is not specified.
- -or-
- This type is sealed.
- -or-
- This type is an array.
- -or-
- This type is an interface, but the nested type is not an interface.
- -or-
- The length of <paramref name="name" /> is zero or greater than 1023.
- -or-
- This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
+ <exception cref="T:System.ArgumentException">The nested attribute is not specified.
+-or-
+This type is sealed.
+-or-
+This type is an array.
+-or-
+This type is an interface, but the nested type is not an interface.
+-or-
+The length of <paramref name="name" /> is zero or greater than 1023.
+-or-
+This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="attr">The attributes of the type.</param>
<param name="parent">The type that the nested type extends.</param>
<returns>The defined nested type.</returns>
- <exception cref="T:System.ArgumentException">The nested attribute is not specified.
- -or-
- This type is sealed.
- -or-
- This type is an array.
- -or-
- This type is an interface, but the nested type is not an interface.
- -or-
- The length of <paramref name="name" /> is zero or greater than 1023.
- -or-
- This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
+ <exception cref="T:System.ArgumentException">The nested attribute is not specified.
+-or-
+This type is sealed.
+-or-
+This type is an array.
+-or-
+This type is an interface, but the nested type is not an interface.
+-or-
+The length of <paramref name="name" /> is zero or greater than 1023.
+-or-
+This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="parent">The type that the nested type extends.</param>
<param name="typeSize">The total size of the type.</param>
<returns>The defined nested type.</returns>
- <exception cref="T:System.ArgumentException">The nested attribute is not specified.
- -or-
- This type is sealed.
- -or-
- This type is an array.
- -or-
- This type is an interface, but the nested type is not an interface.
- -or-
- The length of <paramref name="name" /> is zero or greater than 1023.
- -or-
- This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
+ <exception cref="T:System.ArgumentException">The nested attribute is not specified.
+-or-
+This type is sealed.
+-or-
+This type is an array.
+-or-
+This type is an interface, but the nested type is not an interface.
+-or-
+The length of <paramref name="name" /> is zero or greater than 1023.
+-or-
+This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="parent">The type that the nested type extends.</param>
<param name="packSize">The packing size of the type.</param>
<returns>The defined nested type.</returns>
- <exception cref="T:System.ArgumentException">The nested attribute is not specified.
- -or-
- This type is sealed.
- -or-
- This type is an array.
- -or-
- This type is an interface, but the nested type is not an interface.
- -or-
- The length of <paramref name="name" /> is zero or greater than 1023.
- -or-
- This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
+ <exception cref="T:System.ArgumentException">The nested attribute is not specified.
+-or-
+This type is sealed.
+-or-
+This type is an array.
+-or-
+This type is an interface, but the nested type is not an interface.
+-or-
+The length of <paramref name="name" /> is zero or greater than 1023.
+-or-
+This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
</member>
<param name="parent">The type that the nested type extends.</param>
<param name="interfaces">The interfaces that the nested type implements.</param>
<returns>The defined nested type.</returns>
- <exception cref="T:System.ArgumentException">The nested attribute is not specified.
- -or-
- This type is sealed.
- -or-
- This type is an array.
- -or-
- This type is an interface, but the nested type is not an interface.
- -or-
- The length of <paramref name="name" /> is zero or greater than 1023.
- -or-
- This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
- <exception cref="T:System.ArgumentNullException">
- <paramref name="name" /> is <see langword="null" />.
--or-
+ <exception cref="T:System.ArgumentException">The nested attribute is not specified.
+-or-
+This type is sealed.
+-or-
+This type is an array.
+-or-
+This type is an interface, but the nested type is not an interface.
+-or-
+The length of <paramref name="name" /> is zero or greater than 1023.
+-or-
+This operation would create a type with a duplicate <see cref="P:System.Reflection.Emit.TypeBuilder.FullName" /> in the current assembly.</exception>
+ <exception cref="T:System.ArgumentNullException">
+ <paramref name="name" /> is <see langword="null" />.
+-or-
An element of the <paramref name="interfaces" /> array is <see langword="null" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefinePInvokeMethod(System.String,System.String,System.Reflection.MethodAttributes,System.Reflection.CallingConventions,System.Type,System.Type[],System.Runtime.InteropServices.CallingConvention,System.Runtime.InteropServices.CharSet)">
<param name="nativeCallConv">The native calling convention.</param>
<param name="nativeCharSet">The method's native character set.</param>
<returns>The defined <see langword="PInvoke" /> method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static.
- -or-
- The parent type is an interface.
- -or-
- The method is abstract.
- -or-
- The method was previously defined.
- -or-
- The length of <paramref name="name" /> or <paramref name="dllName" /> is zero.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static.
+-or-
+The parent type is an interface.
+-or-
+The method is abstract.
+-or-
+The method was previously defined.
+-or-
+The length of <paramref name="name" /> or <paramref name="dllName" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> or <paramref name="dllName" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The containing type has been previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
<param name="nativeCallConv">The native calling convention.</param>
<param name="nativeCharSet">The method's native character set.</param>
<returns>The defined <see langword="PInvoke" /> method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static.
- -or-
- The parent type is an interface.
- -or-
- The method is abstract.
- -or-
- The method was previously defined.
- -or-
- The length of <paramref name="name" />, <paramref name="dllName" />, or <paramref name="entryName" /> is zero.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static.
+-or-
+The parent type is an interface.
+-or-
+The method is abstract.
+-or-
+The method was previously defined.
+-or-
+The length of <paramref name="name" />, <paramref name="dllName" />, or <paramref name="entryName" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" />, <paramref name="dllName" />, or <paramref name="entryName" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The containing type has been previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
<param name="parameterTypes">The types of the method's parameters.</param>
<param name="parameterTypeRequiredCustomModifiers">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 <see langword="null" /> instead of an array of types. If none of the parameters have required custom modifiers, specify <see langword="null" /> instead of an array of arrays.</param>
<returns>A <see cref="T:System.Reflection.Emit.MethodBuilder" /> representing the defined <see langword="PInvoke" /> method.</returns>
- <exception cref="T:System.ArgumentException">The method is not static.
- -or-
- The parent type is an interface.
- -or-
- The method is abstract.
- -or-
- The method was previously defined.
- -or-
- The length of <paramref name="name" />, <paramref name="dllName" />, or <paramref name="entryName" /> is zero.
- -or-
- The size of <paramref name="parameterTypeRequiredCustomModifiers" /> or <paramref name="parameterTypeOptionalCustomModifiers" /> does not equal the size of <paramref name="parameterTypes" />.</exception>
+ <exception cref="T:System.ArgumentException">The method is not static.
+-or-
+The parent type is an interface.
+-or-
+The method is abstract.
+-or-
+The method was previously defined.
+-or-
+The length of <paramref name="name" />, <paramref name="dllName" />, or <paramref name="entryName" /> is zero.
+-or-
+The size of <paramref name="parameterTypeRequiredCustomModifiers" /> or <paramref name="parameterTypeOptionalCustomModifiers" /> does not equal the size of <paramref name="parameterTypes" />.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" />, <paramref name="dllName" />, or <paramref name="entryName" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.DefineProperty(System.String,System.Reflection.PropertyAttributes,System.Reflection.CallingConventions,System.Type,System.Type[])">
<summary>Adds a new property to the type, with the given name, attributes, calling convention, and property signature.</summary>
<returns>The defined property.</returns>
<exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="name" /> is <see langword="null" />.
--or-
+ <paramref name="name" /> is <see langword="null" />.
+-or-
Any of the elements of the <paramref name="parameterTypes" /> array is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
</member>
<returns>The defined property.</returns>
<exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="name" /> is <see langword="null" />.
--or-
+ <paramref name="name" /> is <see langword="null" />.
+-or-
Any of the elements of the <paramref name="parameterTypes" /> array is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
</member>
<returns>The defined property.</returns>
<exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="name" /> is <see langword="null" />.
--or-
+ <paramref name="name" /> is <see langword="null" />.
+-or-
Any of the elements of the <paramref name="parameterTypes" /> array is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
</member>
<returns>The defined property.</returns>
<exception cref="T:System.ArgumentException">The length of <paramref name="name" /> is zero.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="name" /> is <see langword="null" />
--or-
+ <paramref name="name" /> is <see langword="null" />
+-or-
Any of the elements of the <paramref name="parameterTypes" /> array is <see langword="null" /></exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
</member>
<param name="size">The size of the data field.</param>
<param name="attributes">The attributes for the field.</param>
<returns>A field to reference the data.</returns>
- <exception cref="T:System.ArgumentException">Length of <paramref name="name" /> is zero.
- -or-
- <paramref name="size" /> is less than or equal to zero, or greater than or equal to 0x003f0000.</exception>
+ <exception cref="T:System.ArgumentException">Length of <paramref name="name" /> is zero.
+-or-
+<paramref name="size" /> is less than or equal to zero, or greater than or equal to 0x003f0000.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="name" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.</exception>
<param name="constructor">A constructor on the generic type definition of <paramref name="type" />, which specifies which constructor of <paramref name="type" /> to return.</param>
<returns>A <see cref="T:System.Reflection.ConstructorInfo" /> object that represents the constructor of <paramref name="type" /> corresponding to <paramref name="constructor" />, which specifies a constructor belonging to the generic type definition of <paramref name="type" />.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="type" /> does not represent a generic type.
--or-
-<paramref name="type" /> is not of type <see cref="T:System.Reflection.Emit.TypeBuilder" />.
--or-
-The declaring type of <paramref name="constructor" /> is not a generic type definition.
--or-
+ <paramref name="type" /> does not represent a generic type.
+-or-
+<paramref name="type" /> is not of type <see cref="T:System.Reflection.Emit.TypeBuilder" />.
+-or-
+The declaring type of <paramref name="constructor" /> is not a generic type definition.
+-or-
The declaring type of <paramref name="constructor" /> is not the generic type definition of <paramref name="type" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.GetConstructors(System.Reflection.BindingFlags)">
<param name="field">A field on the generic type definition of <paramref name="type" />, which specifies which field of <paramref name="type" /> to return.</param>
<returns>A <see cref="T:System.Reflection.FieldInfo" /> object that represents the field of <paramref name="type" /> corresponding to <paramref name="field" />, which specifies a field belonging to the generic type definition of <paramref name="type" />.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="type" /> does not represent a generic type.
--or-
-<paramref name="type" /> is not of type <see cref="T:System.Reflection.Emit.TypeBuilder" />.
--or-
-The declaring type of <paramref name="field" /> is not a generic type definition.
--or-
+ <paramref name="type" /> does not represent a generic type.
+-or-
+<paramref name="type" /> is not of type <see cref="T:System.Reflection.Emit.TypeBuilder" />.
+-or-
+The declaring type of <paramref name="field" /> is not a generic type definition.
+-or-
The declaring type of <paramref name="field" /> is not the generic type definition of <paramref name="type" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.GetFields(System.Reflection.BindingFlags)">
<param name="method">A method on the generic type definition of <paramref name="type" />, which specifies which method of <paramref name="type" /> to return.</param>
<returns>A <see cref="T:System.Reflection.MethodInfo" /> object that represents the method of <paramref name="type" /> corresponding to <paramref name="method" />, which specifies a method belonging to the generic type definition of <paramref name="type" />.</returns>
<exception cref="T:System.ArgumentException">
- <paramref name="method" /> is a generic method that is not a generic method definition.
--or-
-<paramref name="type" /> does not represent a generic type.
--or-
-<paramref name="type" /> is not of type <see cref="T:System.Reflection.Emit.TypeBuilder" />.
--or-
-The declaring type of <paramref name="method" /> is not a generic type definition.
--or-
+ <paramref name="method" /> is a generic method that is not a generic method definition.
+-or-
+<paramref name="type" /> does not represent a generic type.
+-or-
+<paramref name="type" /> is not of type <see cref="T:System.Reflection.Emit.TypeBuilder" />.
+-or-
+The declaring type of <paramref name="method" /> is not a generic type definition.
+-or-
The declaring type of <paramref name="method" /> is not the generic type definition of <paramref name="type" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.GetMethods(System.Reflection.BindingFlags)">
<member name="M:System.Reflection.Emit.TypeBuilder.GetNestedType(System.String,System.Reflection.BindingFlags)">
<summary>Returns the public and non-public nested types that are declared by this type.</summary>
<param name="name">The <see cref="T:System.String" /> containing the name of the nested type to get.</param>
- <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.
- -or-
- Zero, to conduct a case-sensitive search for public methods.</param>
+ <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.
+-or-
+Zero, to conduct a case-sensitive search for public methods.</param>
<returns>A <see cref="T:System.Type" /> object representing the nested type that matches the specified requirements, if found; otherwise, <see langword="null" />.</returns>
<exception cref="T:System.NotSupportedException">This method is not implemented for incomplete types.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.GetNestedTypes(System.Reflection.BindingFlags)">
<summary>Returns the public and non-public nested types that are declared or inherited by this type.</summary>
<param name="bindingAttr">This must be a bit flag from <see cref="T:System.Reflection.BindingFlags" />, as in <see langword="InvokeMethod" />, <see langword="NonPublic" />, and so on.</param>
- <returns>An array of <see cref="T:System.Type" /> objects representing all the types nested within the current <see cref="T:System.Type" /> that match the specified binding constraints.
- An empty array of type <see cref="T:System.Type" />, if no types are nested within the current <see cref="T:System.Type" />, or if none of the nested types match the binding constraints.</returns>
+ <returns>An array of <see cref="T:System.Type" /> objects representing all the types nested within the current <see cref="T:System.Type" /> that match the specified binding constraints.
+An empty array of type <see cref="T:System.Type" />, if no types are nested within the current <see cref="T:System.Type" />, or if none of the nested types match the binding constraints.</returns>
<exception cref="T:System.NotSupportedException">This method is not implemented for incomplete types.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.GetProperties(System.Reflection.BindingFlags)">
<returns>A <see cref="T:System.Type" /> representing the constructed type formed by substituting the elements of <paramref name="typeArguments" /> for the type parameters of the current generic type.</returns>
<exception cref="T:System.InvalidOperationException">The current type does not represent the definition of a generic type. That is, <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> returns <see langword="false" />.</exception>
<exception cref="T:System.ArgumentNullException">
- <paramref name="typeArguments" /> is <see langword="null" />.
--or-
+ <paramref name="typeArguments" /> is <see langword="null" />.
+-or-
Any element of <paramref name="typeArguments" /> is <see langword="null" />.</exception>
- <exception cref="T:System.ArgumentException">The <see cref="P:System.Type.Module" /> property of any element of <paramref name="typeArguments" /> is <see langword="null" />.
- -or-
- The <see cref="P:System.Reflection.Module.Assembly" /> property of the module of any element of <paramref name="typeArguments" /> is <see langword="null" />.</exception>
+ <exception cref="T:System.ArgumentException">The <see cref="P:System.Type.Module" /> property of any element of <paramref name="typeArguments" /> is <see langword="null" />.
+-or-
+The <see cref="P:System.Reflection.Module.Assembly" /> property of the module of any element of <paramref name="typeArguments" /> is <see langword="null" />.</exception>
</member>
<member name="M:System.Reflection.Emit.TypeBuilder.MakePointerType">
<summary>Returns a <see cref="T:System.Type" /> object that represents the type of an unmanaged pointer to the current type.</summary>
<member name="M:System.Reflection.Emit.TypeBuilder.SetParent(System.Type)">
<summary>Sets the base type of the type currently under construction.</summary>
<param name="parent">The new base type.</param>
- <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
- -or-
- <paramref name="parent" /> is <see langword="null" />, and the current instance represents an interface whose attributes do not include <see cref="F:System.Reflection.TypeAttributes.Abstract" />.
- -or-
- For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
+ <exception cref="T:System.InvalidOperationException">The type was previously created using <see cref="M:System.Reflection.Emit.TypeBuilder.CreateType" />.
+-or-
+<paramref name="parent" /> is <see langword="null" />, and the current instance represents an interface whose attributes do not include <see cref="F:System.Reflection.TypeAttributes.Abstract" />.
+-or-
+For the current dynamic type, the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericType" /> property is <see langword="true" />, but the <see cref="P:System.Reflection.Emit.TypeBuilder.IsGenericTypeDefinition" /> property is <see langword="false" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="parent" /> is an interface. This exception condition is new in the .NET Framework version 2.0.</exception>
</member>