Skip to content

Commit 62ee729

Browse files
authored
Fix typo in Type.GetMethod remarks section
Corrected documentation that incorrectly referenced BindingFlags.Instance twice when describing how to retrieve specific methods. The text now correctly suggests using BindingFlags.Static or BindingFlags.Instance to distinguish between static and instance method overloads.
1 parent c9db664 commit 62ee729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System/Type.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5626,7 +5626,7 @@ This method can be used to find a constructed generic member given a member from
56265626

56275627
You can do one of the following to retrieve a specific method:
56285628

5629-
- Call the <xref:System.Type.GetMethod%28System.String%2CSystem.Reflection.BindingFlags%29> method and specify a `bindingAttr` argument that uniquely identifies the method. For example, if the exception is thrown because a type has a static and an instance overload, you can specify a `bindingAttr` argument of <xref:System.Reflection.BindingFlags.Instance?displayProperty=nameWithType>` Or `<xref:System.Reflection.BindingFlags.Instance?displayProperty=nameWithType>.
5629+
- Call the <xref:System.Type.GetMethod%28System.String%2CSystem.Reflection.BindingFlags%29> method and specify a `bindingAttr` argument that uniquely identifies the method. For example, if the exception is thrown because a type has a static and an instance overload, you can specify a `bindingAttr` argument of <xref:System.Reflection.BindingFlags.Static?displayProperty=nameWithType> or <xref:System.Reflection.BindingFlags.Instance?displayProperty=nameWithType>.
56305630

56315631
- Call an overload of the <xref:System.Type.GetMethod%2A> method that includes a `types` parameter which defines the types of the method's parameters.
56325632

0 commit comments

Comments
 (0)