Skip to content

Commit 51530b7

Browse files
carlossanlopmairaw
authored andcommitted
Document System.Type.GetMethod and GetMethodImpl (#3536)
1 parent 901a783 commit 51530b7

File tree

1 file changed

+129
-36
lines changed

1 file changed

+129
-36
lines changed

xml/System/Type.xml

Lines changed: 129 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5034,12 +5034,27 @@ The <xref:System.Type.GetMembers%2A> method does not return members in a particu
50345034
<Parameter Name="types" Type="System.Type[]" Index="2" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
50355035
</Parameters>
50365036
<Docs>
5037-
<param name="name">To be added.</param>
5038-
<param name="genericParameterCount">To be added.</param>
5039-
<param name="types">To be added.</param>
5040-
<summary>To be added.</summary>
5041-
<returns>To be added.</returns>
5037+
<param name="name">The string containing the name of the public method to get.</param>
5038+
<param name="genericParameterCount">The number of generic type parameters of the method.</param>
5039+
<param name="types">An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
5040+
5041+
-or-
5042+
5043+
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.</param>
5044+
<summary>Searches for the specified public method whose parameters match the specified generic parameter count and argument types.</summary>
5045+
<returns>An object representing the public method whose parameters match the specified generic parameter count and argument types, if found; otherwise, <see langword="null" />.</returns>
50425046
<remarks>To be added.</remarks>
5047+
<exception cref="T:System.ArgumentNullException"><paramref name="name" /> is <see langword="null" />.
5048+
5049+
-or-
5050+
5051+
<paramref name="types" /> is <see langword="null" />.
5052+
5053+
-or-
5054+
5055+
One of the elements in the <paramref name="types" /> array is <see langword="null" />.
5056+
</exception>
5057+
<exception cref="T:System.ArgumentException"><paramref name="genericParameterCount" /> is negative.</exception>
50435058
</Docs>
50445059
</Member>
50455060
<Member MemberName="GetMethod">
@@ -5165,13 +5180,28 @@ The <xref:System.Type.GetMembers%2A> method does not return members in a particu
51655180
<Parameter Name="modifiers" Type="System.Reflection.ParameterModifier[]" Index="3" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
51665181
</Parameters>
51675182
<Docs>
5168-
<param name="name">To be added.</param>
5169-
<param name="genericParameterCount">To be added.</param>
5170-
<param name="types">To be added.</param>
5171-
<param name="modifiers">To be added.</param>
5172-
<summary>To be added.</summary>
5173-
<returns>To be added.</returns>
5183+
<param name="name">The string containing the name of the public method to get.</param>
5184+
<param name="genericParameterCount">The number of generic type parameters of the method.</param>
5185+
<param name="types">An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
5186+
5187+
-or-
5188+
5189+
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.</param>
5190+
<param name="modifiers">An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.</param>
5191+
<summary>Searches for the specified public method whose parameters match the specified generic parameter count, argument types and modifiers.</summary>
5192+
<returns>An object representing the public method that matches the specified generic parameter count, argument types and modifiers, if found; otherwise, <see langword="null" />.</returns>
51745193
<remarks>To be added.</remarks>
5194+
<exception cref="T:System.ArgumentNullException"><paramref name="name" /> is <see langword="null" />.
5195+
5196+
-or-
5197+
5198+
<paramref name="types" /> is <see langword="null" />.
5199+
5200+
-or-
5201+
5202+
One of the elements in the <paramref name="types" /> array is <see langword="null" />.
5203+
</exception>
5204+
<exception cref="T:System.ArgumentException"><paramref name="genericParameterCount" /> is negative.</exception>
51755205
</Docs>
51765206
</Member>
51775207
<Member MemberName="GetMethod">
@@ -5337,15 +5367,38 @@ The <xref:System.Type.GetMembers%2A> method does not return members in a particu
53375367
<Parameter Name="modifiers" Type="System.Reflection.ParameterModifier[]" Index="5" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
53385368
</Parameters>
53395369
<Docs>
5340-
<param name="name">To be added.</param>
5341-
<param name="genericParameterCount">To be added.</param>
5342-
<param name="bindingAttr">To be added.</param>
5343-
<param name="binder">To be added.</param>
5344-
<param name="types">To be added.</param>
5345-
<param name="modifiers">To be added.</param>
5346-
<summary>To be added.</summary>
5347-
<returns>To be added.</returns>
5370+
<param name="name">The string containing the name of the public method to get.</param>
5371+
<param name="genericParameterCount">The number of generic type parameters of the method.</param>
5372+
<param name="bindingAttr">A bitwise combination of the enumeration values that specify how the search is conducted.
5373+
5374+
-or-
5375+
5376+
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" />.</param>
5377+
<param name="binder">An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
5378+
5379+
-or-
5380+
5381+
A null reference (<see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" />.</param>
5382+
<param name="types">An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
5383+
5384+
-or-
5385+
5386+
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.</param>
5387+
<param name="modifiers">An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.</param>
5388+
<summary>Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints.</summary>
5389+
<returns>An object representing the method that matches the specified generic parameter count, argument types, modifiers and binding constraints, if found; otherwise, <see langword="null" />.</returns>
53485390
<remarks>To be added.</remarks>
5391+
<exception cref="T:System.ArgumentNullException"><paramref name="name" /> is <see langword="null" />.
5392+
5393+
-or-
5394+
5395+
<paramref name="types" /> is <see langword="null" />.
5396+
5397+
-or-
5398+
5399+
One of the elements in the <paramref name="types" /> array is <see langword="null" />.
5400+
</exception>
5401+
<exception cref="T:System.ArgumentException"><paramref name="genericParameterCount" /> is negative.</exception>
53495402
</Docs>
53505403
</Member>
53515404
<Member MemberName="GetMethod">
@@ -5534,16 +5587,39 @@ The <xref:System.Type.GetMembers%2A> method does not return members in a particu
55345587
<Parameter Name="modifiers" Type="System.Reflection.ParameterModifier[]" Index="6" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
55355588
</Parameters>
55365589
<Docs>
5537-
<param name="name">To be added.</param>
5538-
<param name="genericParameterCount">To be added.</param>
5539-
<param name="bindingAttr">To be added.</param>
5540-
<param name="binder">To be added.</param>
5590+
<param name="name">The string containing the name of the public method to get.</param>
5591+
<param name="genericParameterCount">The number of generic type parameters of the method.</param>
5592+
<param name="bindingAttr">A bitwise combination of the enumeration values that specify how the search is conducted.
5593+
5594+
-or-
5595+
5596+
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" />.</param>
5597+
<param name="binder">An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
5598+
5599+
-or-
5600+
5601+
A null reference (<see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" />.</param>
55415602
<param name="callConvention">To be added.</param>
5542-
<param name="types">To be added.</param>
5543-
<param name="modifiers">To be added.</param>
5544-
<summary>To be added.</summary>
5545-
<returns>To be added.</returns>
5603+
<param name="types">An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
5604+
5605+
-or-
5606+
5607+
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.</param>
5608+
<param name="modifiers">An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.</param>
5609+
<summary>Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention.</summary>
5610+
<returns>An object representing the method that matches the specified generic parameter count, argument types, modifiers, binding constraints and calling convention, if found; otherwise, <see langword="null" />.</returns>
55465611
<remarks>To be added.</remarks>
5612+
<exception cref="T:System.ArgumentNullException"><paramref name="name" /> is <see langword="null" />.
5613+
5614+
-or-
5615+
5616+
<paramref name="types" /> is <see langword="null" />.
5617+
5618+
-or-
5619+
5620+
One of the elements in the <paramref name="types" /> array is <see langword="null" />.
5621+
</exception>
5622+
<exception cref="T:System.ArgumentException"><paramref name="genericParameterCount" /> is negative.</exception>
55475623
</Docs>
55485624
</Member>
55495625
<Member MemberName="GetMethodImpl">
@@ -5690,16 +5766,33 @@ The <xref:System.Type.GetMembers%2A> method does not return members in a particu
56905766
<Parameter Name="modifiers" Type="System.Reflection.ParameterModifier[]" Index="6" FrameworkAlternate="netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
56915767
</Parameters>
56925768
<Docs>
5693-
<param name="name">To be added.</param>
5694-
<param name="genericParameterCount">To be added.</param>
5695-
<param name="bindingAttr">To be added.</param>
5696-
<param name="binder">To be added.</param>
5697-
<param name="callConvention">To be added.</param>
5698-
<param name="types">To be added.</param>
5699-
<param name="modifiers">To be added.</param>
5700-
<summary>To be added.</summary>
5701-
<returns>To be added.</returns>
5769+
<param name="name">The string containing the name of the method to get.</param>
5770+
<param name="genericParameterCount">The number of generic type parameters of the method.</param>
5771+
<param name="bindingAttr">A bitwise combination of the enumeration values that specify how the search is conducted.
5772+
5773+
-or-
5774+
5775+
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" />.</param>
5776+
<param name="binder">An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
5777+
5778+
-or-
5779+
5780+
A null reference (<see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" />.</param>
5781+
<param name="callConvention">The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and what process cleans up the stack.</param>
5782+
<param name="types">An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
5783+
5784+
-or-
5785+
5786+
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a method that takes no parameters.
5787+
5788+
-or-
5789+
5790+
<see langword="null" />. If <paramref name="types" /> is <see langword="null" />, arguments are not matched.</param>
5791+
<param name="modifiers">An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.</param>
5792+
<summary>When overridden in a derived class, searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention.</summary>
5793+
<returns>An object representing the method that matches the specified generic parameter count, argument types, modifiers, binding constraints and calling convention, if found; otherwise, <see langword="null" />.</returns>
57025794
<remarks>To be added.</remarks>
5795+
<exception cref="T:System.NotSupportedException">The method needs to be overriden and called in a derived class.</exception>
57035796
</Docs>
57045797
</Member>
57055798
<MemberGroup MemberName="GetMethods">

0 commit comments

Comments
 (0)