Skip to content

Commit 014c95e

Browse files
authored
Fix example description (#11961)
1 parent 2c40dcb commit 014c95e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

xml/System.Reflection/ParameterInfo.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,17 @@
220220
<format type="text/markdown"><![CDATA[
221221
222222
## Remarks
223-
This method utilizes the <xref:System.Reflection.ParameterInfo.AttrsImpl> method.
224-
225-
To get the <xref:System.Reflection.ParameterInfo> array, first get the method or the constructor and then call <xref:System.Reflection.MethodBase.GetParameters%2A?displayProperty=nameWithType>.
226223
224+
This method utilizes the <xref:System.Reflection.ParameterInfo.AttrsImpl> method.
227225
226+
To get the <xref:System.Reflection.ParameterInfo> array, first get the method or the constructor and then call <xref:System.Reflection.MethodBase.GetParameters%2A?displayProperty=nameWithType>.
228227
229228
## Examples
230-
The following example defines a method with three parameters. It uses the <xref:System.Reflection.ParameterInfo.Attributes%2A> property to get the attributes of the second parameter and display them at the console.
231229
232-
:::code language="csharp" source="~/snippets/csharp/System.Reflection/ParameterInfo/Attributes/parameterinfo_attributes1.cs" id="Snippet1":::
233-
:::code language="vb" source="~/snippets/visualbasic/System.Reflection/ParameterInfo/Attributes/parameterinfo_attributes1.vb" id="Snippet1":::
230+
The following example defines a method with three parameters. It uses the <xref:System.Reflection.ParameterInfo.Attributes%2A> property to get the attributes of each parameter and display them in the console.
231+
232+
:::code language="csharp" source="~/snippets/csharp/System.Reflection/ParameterInfo/Attributes/parameterinfo_attributes1.cs" id="Snippet1":::
233+
:::code language="vb" source="~/snippets/visualbasic/System.Reflection/ParameterInfo/Attributes/parameterinfo_attributes1.vb" id="Snippet1":::
234234
235235
]]></format>
236236
</remarks>

0 commit comments

Comments
 (0)