Skip to content

Commit b73418e

Browse files
jiayi11BillWagner
authored andcommitted
recommend users to cache serializers created from FromTypes and FormMappings (#1964)
1 parent bf9220f commit b73418e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Xml.Serialization/XmlSerializer.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ xmlSerializer mySerializer=new XmlSerializer(typeof(LargeNumbers));
14691469
<param name="mappings">An array of <see cref="T:System.Xml.Serialization.XmlTypeMapping" /> that maps one type to another.</param>
14701470
<summary>Returns an array of <see cref="T:System.Xml.Serialization.XmlSerializer" /> objects created from an array of <see cref="T:System.Xml.Serialization.XmlTypeMapping" /> objects.</summary>
14711471
<returns>An array of <see cref="T:System.Xml.Serialization.XmlSerializer" /> objects.</returns>
1472-
<remarks>To be added.</remarks>
1472+
<remarks>It is recommended for callers to cache the returned serializer when there are repeated calls to this method.</remarks>
14731473
</Docs>
14741474
</Member>
14751475
<Member MemberName="FromMappings">
@@ -1596,7 +1596,7 @@ xmlSerializer mySerializer=new XmlSerializer(typeof(LargeNumbers));
15961596
<format type="text/markdown"><![CDATA[
15971597
15981598
## Remarks
1599-
The <xref:System.Xml.Serialization.XmlSerializer.FromTypes%2A> method allows you to efficiently create an array of <xref:System.Xml.Serialization.XmlSerializer> objects for processing an array of <xref:System.Type> objects.
1599+
The <xref:System.Xml.Serialization.XmlSerializer.FromTypes%2A> method allows you to efficiently create an array of <xref:System.Xml.Serialization.XmlSerializer> objects for processing an array of <xref:System.Type> objects. However, it is recommended for callers to cache the returned serializers when there are repeated calls to this method.
16001600
16011601
16021602

0 commit comments

Comments
 (0)