-Documentation

This commit is contained in:
James Newton-King
2015-12-13 20:40:33 +13:00
parent 4c256e7afd
commit 60cce16d43
6 changed files with 38 additions and 3 deletions
+11 -2
View File
@@ -180,16 +180,25 @@ or a property's object properties or collection items using
<section>
<title>TypeNameHandling</title>
<content>
<alert class="caution">
<para>
<codeEntityReference>T:Newtonsoft.Json.TypeNameHandling</codeEntityReference> should be used with caution when your application deserializes JSON from an external source.
</para>
<para>
Incoming types should be validated with a custom <codeEntityReference>T:System.Runtime.Serialization.SerializationBinder</codeEntityReference> when deserializing with a value other than <c>TypeNameHandling.None</c>.
</para>
</alert>
<para>
<codeEntityReference>T:Newtonsoft.Json.TypeNameHandling</codeEntityReference> controls whether Json.NET includes .NET type names
during serialization with a $type property and reads .NET type names from that property to determine what type to create during
deserialization.
</para>
<para>
The value of the $type property can be customized by creating your own
The value of the $type property can be customized and validated by creating your own
<codeEntityReference>T:System.Runtime.Serialization.SerializationBinder</codeEntityReference>.
</para>
<table>
<tableHeader>
<row>