Newtonsoft.Json.Serialization.DefaultContractResolver
namespace Newtonsoft.Json.Serialization
{
public class DefaultContractResolver : IContractResolver
{
public bool DynamicCodeGeneration { get; }
public bool SerializeCompilerGeneratedMembers { get; set; }
public bool IgnoreSerializableInterface { get; set; }
public bool IgnoreSerializableAttribute { get; set; }
public bool IgnoreIsSpecifiedMembers { get; set; }
public bool IgnoreShouldSerializeMembers { get; set; }
public NamingStrategy NamingStrategy { get; set; }
public DefaultContractResolver();
public virtual JsonContract ResolveContract(Type type);
protected virtual List<MemberInfo> GetSerializableMembers(Type objectType);
protected virtual JsonObjectContract CreateObjectContract(Type objectType);
protected virtual IList<JsonProperty> CreateConstructorParameters(ConstructorInfo constructor, JsonPropertyCollection memberProperties);
protected virtual JsonProperty CreatePropertyFromConstructorParameter(JsonProperty matchingMemberProperty, ParameterInfo parameterInfo);
protected virtual JsonConverter ResolveContractConverter(Type objectType);
protected virtual JsonDictionaryContract CreateDictionaryContract(Type objectType);
protected virtual JsonArrayContract CreateArrayContract(Type objectType);
protected virtual JsonPrimitiveContract CreatePrimitiveContract(Type objectType);
protected virtual JsonLinqContract CreateLinqContract(Type objectType);
protected virtual JsonISerializableContract CreateISerializableContract(Type objectType);
protected virtual JsonDynamicContract CreateDynamicContract(Type objectType);
protected virtual JsonStringContract CreateStringContract(Type objectType);
protected virtual JsonContract CreateContract(Type objectType);
protected virtual IList<JsonProperty> CreateProperties(Type type, MemberSerialization memberSerialization);
protected virtual IValueProvider CreateMemberValueProvider(MemberInfo member);
protected virtual JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization);
protected virtual string ResolvePropertyName(string propertyName);
protected virtual string ResolveExtensionDataName(string extensionDataName);
protected virtual string ResolveDictionaryKey(string dictionaryKey);
public string GetResolvedPropertyName(string propertyName);
}
}