-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Type of issue
Typo
Description
Greetings.
Below the first code sample of Type.GetMethod(String)
's Remarks section, several solutions to retrieve a specific method are described. The first one, which suggests to use the GetMethod(String, BindingFlags)
overload finishes with some text I don't understand:
[...] you can specify a
bindingAttr
argument of BindingFlags.InstanceOr
BindingFlags.Instance.
I'm not a Type
specialist but I think there might be an issue here. Given the first paragraph of the section:
[...] The search includes public static and public instance methods.
... my guess is that the text should probably have been something like this?
you can specify a
bindingAttr
ofBindingFlags.Static
orBindingFlags.Instance
.
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.type.getmethod?view=net-9.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/Type.xml
Document Version Independent Id
73897893-044d-2e74-8754-5761abcf38c5
Platform Id
f34b4296-5999-5a96-fdcd-d3cfea141485