From c7a680d488000156baa8e776b949f84637bc502b Mon Sep 17 00:00:00 2001 From: Ali-Abdulhussein Date: Wed, 25 Sep 2024 16:46:46 +0200 Subject: [PATCH 1/3] fix-#42677 --- .../how-to-control-serialization-of-derived-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md b/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md index 9d32d7ae3457a..342eb061185a6 100644 --- a/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md +++ b/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md @@ -43,7 +43,7 @@ Public Class Run ' Creates an XmlElementAttribute instance to override the ' field that returns Book objects. The overridden field - ' returns Expanded objects instead. + ' returns ExpandedBook objects instead. Dim attr As XmlElementAttribute = _ New XmlElementAttribute() attr.ElementName = "NewBook" From 39e052d44c298c9ee708177fea1a2fa756fedc58 Mon Sep 17 00:00:00 2001 From: Ali-Abdulhussein Date: Wed, 25 Sep 2024 17:27:16 +0200 Subject: [PATCH 2/3] fix (#42677) --- .../how-to-control-serialization-of-derived-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md b/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md index 342eb061185a6..37f7af920ceca 100644 --- a/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md +++ b/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md @@ -89,7 +89,7 @@ Public Class Run ' Creates an XmlElementAttribute to override the ' field that returns Book objects. The overridden field - ' returns Expanded objects instead. + ' returns ExpandedBook objects instead. Dim attr As XmlElementAttribute = _ New XmlElementAttribute() attr.ElementName = "NewBook" From d46c15f061d2f1bcc0df53d40cba92a75729bf15 Mon Sep 17 00:00:00 2001 From: Ali-Abdulhussein Date: Wed, 25 Sep 2024 17:27:16 +0200 Subject: [PATCH 3/3] Fix C# methods --- .../how-to-control-serialization-of-derived-classes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md b/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md index 342eb061185a6..e805847f1aa7f 100644 --- a/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md +++ b/docs/standard/serialization/how-to-control-serialization-of-derived-classes.md @@ -89,7 +89,7 @@ Public Class Run ' Creates an XmlElementAttribute to override the ' field that returns Book objects. The overridden field - ' returns Expanded objects instead. + ' returns ExpandedBook objects instead. Dim attr As XmlElementAttribute = _ New XmlElementAttribute() attr.ElementName = "NewBook" @@ -149,7 +149,7 @@ public class Run // Creates an XmlElementAttribute instance to override the // field that returns Book objects. The overridden field - // returns Expanded objects instead. + // returns ExpandedBook objects instead. XmlElementAttribute attr = new XmlElementAttribute(); attr.ElementName = "NewBook"; attr.Type = typeof(ExpandedBook); @@ -194,7 +194,7 @@ public class Run // Creates an XmlElementAttribute to override the // field that returns Book objects. The overridden field - // returns Expanded objects instead. + // returns ExpandedBook objects instead. XmlElementAttribute attr = new XmlElementAttribute(); attr.ElementName = "NewBook"; attr.Type = typeof(ExpandedBook);