Skip to content

Commit 1dd97f8

Browse files
authored
#42677 suspected typo how to control serialization of derived classes (#42720)
1 parent db6f0dd commit 1dd97f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/standard/serialization/how-to-control-serialization-of-derived-classes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Public Class Run
4343

4444
' Creates an XmlElementAttribute instance to override the
4545
' field that returns Book objects. The overridden field
46-
' returns Expanded objects instead.
46+
' returns ExpandedBook objects instead.
4747
Dim attr As XmlElementAttribute = _
4848
New XmlElementAttribute()
4949
attr.ElementName = "NewBook"
@@ -89,7 +89,7 @@ Public Class Run
8989

9090
' Creates an XmlElementAttribute to override the
9191
' field that returns Book objects. The overridden field
92-
' returns Expanded objects instead.
92+
' returns ExpandedBook objects instead.
9393
Dim attr As XmlElementAttribute = _
9494
New XmlElementAttribute()
9595
attr.ElementName = "NewBook"
@@ -149,7 +149,7 @@ public class Run
149149

150150
// Creates an XmlElementAttribute instance to override the
151151
// field that returns Book objects. The overridden field
152-
// returns Expanded objects instead.
152+
// returns ExpandedBook objects instead.
153153
XmlElementAttribute attr = new XmlElementAttribute();
154154
attr.ElementName = "NewBook";
155155
attr.Type = typeof(ExpandedBook);
@@ -194,7 +194,7 @@ public class Run
194194

195195
// Creates an XmlElementAttribute to override the
196196
// field that returns Book objects. The overridden field
197-
// returns Expanded objects instead.
197+
// returns ExpandedBook objects instead.
198198
XmlElementAttribute attr = new XmlElementAttribute();
199199
attr.ElementName = "NewBook";
200200
attr.Type = typeof(ExpandedBook);

0 commit comments

Comments
 (0)