From 0c8345678923061414da16307df9f78abe007a54 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 11:21:36 -0700 Subject: [PATCH 1/6] use source path relative to repo root --- xml/System.Reflection.Context/CustomReflectionContext.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xml/System.Reflection.Context/CustomReflectionContext.xml b/xml/System.Reflection.Context/CustomReflectionContext.xml index 0d47eb96793..1ee8beb8786 100644 --- a/xml/System.Reflection.Context/CustomReflectionContext.xml +++ b/xml/System.Reflection.Context/CustomReflectionContext.xml @@ -72,6 +72,11 @@ :::code language="csharp" source="~/snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: ]]> + + The following example is a test... + + + From bee5fde209ec8a8e53b54f4dc4d1072cb6a03051 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 12:09:32 -0700 Subject: [PATCH 2/6] move remarks tag --- xml/System.Reflection.Context/CustomReflectionContext.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System.Reflection.Context/CustomReflectionContext.xml b/xml/System.Reflection.Context/CustomReflectionContext.xml index 1ee8beb8786..10f403ff4e8 100644 --- a/xml/System.Reflection.Context/CustomReflectionContext.xml +++ b/xml/System.Reflection.Context/CustomReflectionContext.xml @@ -72,12 +72,12 @@ :::code language="csharp" source="~/snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: ]]> - + + The following example is a test... - - + From 1f40ec1c458f01ce5159f4a32ea1984ef7fcc0b3 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 15:11:44 -0700 Subject: [PATCH 3/6] Use src instead of source --- xml/System.Reflection.Context/CustomReflectionContext.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Reflection.Context/CustomReflectionContext.xml b/xml/System.Reflection.Context/CustomReflectionContext.xml index 10f403ff4e8..ffec3d1bc31 100644 --- a/xml/System.Reflection.Context/CustomReflectionContext.xml +++ b/xml/System.Reflection.Context/CustomReflectionContext.xml @@ -68,8 +68,8 @@ The following example demonstrates how to subclass to add a custom attribute to all the members of a given type whose names begin with "To". - :::code language="csharp" source="~/snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet1"::: - :::code language="csharp" source="~/snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: + :::code language="csharp" src="snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet1"::: + :::code language="csharp" src="snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: ]]> From 3007350e991fd82c49a979202801a662b3df2e0f Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 19:39:18 -0700 Subject: [PATCH 4/6] Update CustomReflectionContext.xml --- xml/System.Reflection.Context/CustomReflectionContext.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.Reflection.Context/CustomReflectionContext.xml b/xml/System.Reflection.Context/CustomReflectionContext.xml index ffec3d1bc31..c2874c59931 100644 --- a/xml/System.Reflection.Context/CustomReflectionContext.xml +++ b/xml/System.Reflection.Context/CustomReflectionContext.xml @@ -68,8 +68,8 @@ The following example demonstrates how to subclass to add a custom attribute to all the members of a given type whose names begin with "To". - :::code language="csharp" src="snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet1"::: - :::code language="csharp" src="snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: + :::code language="csharp" source="../snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet1"::: + :::code language="csharp" source="../snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: ]]> From 12fc9da8890dff19975f8b0f97a555b792f17c56 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 19:41:01 -0700 Subject: [PATCH 5/6] Refactor examples and code snippet references in XML Removed redundant examples and updated code snippet references. --- .../CustomReflectionContext.xml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xml/System.Reflection.Context/CustomReflectionContext.xml b/xml/System.Reflection.Context/CustomReflectionContext.xml index c2874c59931..dbe4d15209e 100644 --- a/xml/System.Reflection.Context/CustomReflectionContext.xml +++ b/xml/System.Reflection.Context/CustomReflectionContext.xml @@ -66,17 +66,12 @@ > method. It doesn't alter the custom attribute data returned by the > method, and these two lists won't match when you use a custom reflection context. - The following example demonstrates how to subclass to add a custom attribute to all the members of a given type whose names begin with "To". - - :::code language="csharp" source="../snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet1"::: - :::code language="csharp" source="../snippets/csharp/System.Reflection.Context/CustomReflectionContext/CustomReflectionContext.Examples.cs" id="Snippet2"::: - ]]> The following example is a test... - - + + From 9303ee40a5b73b5318f44777f015dddeba179432 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 22 Jul 2026 20:13:18 -0700 Subject: [PATCH 6/6] Try more variations --- xml/System.Reflection.Context/CustomReflectionContext.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xml/System.Reflection.Context/CustomReflectionContext.xml b/xml/System.Reflection.Context/CustomReflectionContext.xml index dbe4d15209e..46ae822aa17 100644 --- a/xml/System.Reflection.Context/CustomReflectionContext.xml +++ b/xml/System.Reflection.Context/CustomReflectionContext.xml @@ -71,7 +71,10 @@ The following example is a test... - + + + +