From de5bdfb391ab6d3f57026414e64ac6e0e22e7c3c Mon Sep 17 00:00:00 2001 From: Nicholas Piazza Date: Thu, 10 Mar 2022 16:42:30 -0600 Subject: [PATCH 1/2] 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' --- xml/System.Reflection/AmbiguousMatchException.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Reflection/AmbiguousMatchException.xml b/xml/System.Reflection/AmbiguousMatchException.xml index f6967b822d5..35e07e414ec 100644 --- a/xml/System.Reflection/AmbiguousMatchException.xml +++ b/xml/System.Reflection/AmbiguousMatchException.xml @@ -1,4 +1,4 @@ - +d @@ -264,7 +264,7 @@ ## Examples - 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. + 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. :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_Classic/classic AmbiguousMatchException.AmbiguousMatchException2 Example/CPP/source.cpp" id="Snippet1"::: :::code language="csharp" source="~/snippets/csharp/System.Reflection/AmbiguousMatchException/source.cs" id="Snippet1"::: From 67a5666e9ef9b201a0882a0d579cecb02f6b2ba2 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 10 Mar 2022 15:27:33 -0800 Subject: [PATCH 2/2] Remove typo --- xml/System.Reflection/AmbiguousMatchException.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Reflection/AmbiguousMatchException.xml b/xml/System.Reflection/AmbiguousMatchException.xml index 35e07e414ec..6ef48de147b 100644 --- a/xml/System.Reflection/AmbiguousMatchException.xml +++ b/xml/System.Reflection/AmbiguousMatchException.xml @@ -1,4 +1,4 @@ -d +