Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xml/System.Reflection/MethodBase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,13 @@

- If the current method is an open constructed method (that is, the <xref:System.Reflection.MethodBase.ContainsGenericParameters> property returns `true`) in which specific types have been assigned to some type parameters and type parameters of enclosing generic types have been assigned to other type parameters, the array contains both types and type parameters. Use the <xref:System.Type.IsGenericParameter> property to tell them apart. For a demonstration of this scenario, see the code example provided for the <xref:System.Reflection.MethodBase.ContainsGenericParameters> property.

Generic constructors are not supported in the .NET Framework version 2.0. This property throws <xref:System.NotSupportedException> if not overridden in a derived class, so an exception is thrown if the current instance is of type <xref:System.Reflection.ConstructorInfo>.
- If the current method is a constructor, the returned array is an empty array in .NET 11 and later. In .NET 10 and earlier versions, the <xref:System.Reflection.MethodBase.GetGenericArguments*> method throws <xref:System.NotSupportedException>.
Comment thread
max-charlamb marked this conversation as resolved.

For a list of the invariant conditions for terms specific to generic methods, see the <xref:System.Reflection.MethodBase.IsGenericMethod> property. For a list of the invariant conditions for other terms used in generic reflection, see the <xref:System.Type.IsGenericType?displayProperty=nameWithType> property.

]]></format>
</remarks>
<exception cref="T:System.NotSupportedException">The current object is a <see cref="T:System.Reflection.ConstructorInfo" />. Generic constructors are not supported in the .NET Framework version 2.0. This exception is the default behavior if this method is not overridden in a derived class.</exception>
<exception cref="T:System.NotSupportedException">This method is not overridden in a derived class.</exception>
<altmember cref="P:System.Reflection.MethodBase.IsGenericMethodDefinition" />
<altmember cref="M:System.Reflection.MethodInfo.GetGenericArguments" />
<altmember cref="P:System.Reflection.MethodBase.IsGenericMethod" />
Expand Down
Loading