-Added support to deserializing to IEnumerable<T>, IList<T>, IDictionary<K, V>
-Added populating members when creating object from non default constructor -Added case best match when deserializing properties -Added ToString(Formatting, JsonConverters[]) overload to JToken -Added SerializeObject(object, Formatting, JsonConverter[]) overload to JsonConvert -Added IMappingResolver. Property added to JsonSerializer, JsonSerializerSettings, JsonSchemaGenerator -Added CamelCaseMappingResolver
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.TestObjects
|
||||
{
|
||||
public class GenericListAndDictionaryInterfaceProperties
|
||||
{
|
||||
public IEnumerable<int> IEnumerableProperty { get; set; }
|
||||
public IList<int> IListProperty { get; set; }
|
||||
public IDictionary<string, int> IDictionaryProperty { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.TestObjects
|
||||
{
|
||||
public class PrivateMembersClass
|
||||
{
|
||||
public PrivateMembersClass(string privateString, string internalString)
|
||||
{
|
||||
_privateString = privateString;
|
||||
_internalString = internalString;
|
||||
}
|
||||
|
||||
public PrivateMembersClass()
|
||||
{
|
||||
}
|
||||
|
||||
private string _privateString;
|
||||
private int i;
|
||||
internal string _internalString;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user