Skip to content

Commit a47340c

Browse files
Nicholas Piazzagewarren
andauthored
Update AmbiguousMatchException.xml (#7810)
* Update AmbiguousMatchException.xml In the description of the example for AmbiguousMatchException(String, Exception), the term 'class' or 'classes' is used when it should be 'method' or 'methods'. The proposed changed is to replace 'class' with 'method' and 'classes' with 'methods' * Remove typo Co-authored-by: Genevieve Warren <[email protected]>
1 parent f8b97af commit a47340c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Reflection/AmbiguousMatchException.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
265265
266266
## Examples
267-
The following example shows two classes, each named `Mymethod`. One class takes an integer and the other takes a string. If an integer is passed to `Mymethod`, the first class is used. If a string is passed, the second class is used. If it cannot be determined which `Mymethod` to use, `AmbiguousMatchException` is thrown.
267+
The following example shows two methods, each named `Mymethod`. One method takes an integer and the other takes a string. If an integer is passed to `Mymethod`, the first method is used. If a string is passed, the second method is used. If it cannot be determined which `Mymethod` to use, `AmbiguousMatchException` is thrown.
268268
269269
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_Classic/classic AmbiguousMatchException.AmbiguousMatchException2 Example/CPP/source.cpp" id="Snippet1":::
270270
:::code language="csharp" source="~/snippets/csharp/System.Reflection/AmbiguousMatchException/source.cs" id="Snippet1":::

0 commit comments

Comments
 (0)