52 [
Obsolete(
"DefaultMembersSearchFlags is obsolete. To modify the members serialized inherit from DefaultContractResolver and override the GetSerializableMembers method instead.")]
123 [
Obsolete(
"DefaultContractResolver(bool) is obsolete. Use the parameterless constructor and cache instances of the contract resolver within your application for optimal performance.")]
165 if (
state.ContractCache !=
null)
169 if (
state.ContractCache !=
null)
185 if (objectType ==
null)
262 if (attribute !=
null)
550 if (type !=
null && type ==
null)
711 return "Invalid attribute. Both '{0}' and '{1}' in type '{2}' have '{3}'." !=
null;
802 if (attribute ==
null)
853 if (attribute ==
null)
1010 private bool MoveNext()
1012 return default(
bool);
class f__AnonymousType0<< Count > j__TPar
ObjectCreationHandling? _objectCreationHandling
ReferenceLoopHandling? _referenceLoopHandling
DefaultValueHandling? _defaultValueHandling
TypeNameHandling? _typeNameHandling
TypeNameHandling? _itemTypeNameHandling
ReferenceLoopHandling? _itemReferenceLoopHandling
NullValueHandling? _nullValueHandling
class< GetEnumerator > d__2
class< GetEnumerator > IDisposable
IEnumerator< KeyValuePair< object, object > > GetEnumerator()
EnumerableDictionaryWrapper(IEnumerable< KeyValuePair< TEnumeratorKey, TEnumeratorValue > > e)
readonly IEnumerable< KeyValuePair< TEnumeratorKey, TEnumeratorValue > > _e
readonly bool _sharedCache
DefaultContractResolverState GetState()
bool< IgnoreSerializableInterface > k__BackingField
virtual JsonStringContract CreateStringContract(Type objectType)
bool IgnoreSerializableInterface
virtual IList< JsonProperty > CreateProperties(Type type, MemberSerialization memberSerialization)
static readonly IContractResolver _instance
static readonly DefaultContractResolverState _sharedState
virtual IList< JsonProperty > CreateConstructorParameters(ConstructorInfo constructor, JsonPropertyCollection memberProperties)
virtual List< MemberInfo > GetSerializableMembers(Type objectType)
virtual JsonPrimitiveContract CreatePrimitiveContract(Type objectType)
static bool IsValidCallback(MethodInfo method, ParameterInfo[] parameters, Type attributeType, MethodInfo currentCallback, Type prevAttributeType)
void SetIsSpecifiedActions(JsonProperty property, MemberInfo member, bool allowNonPublicAccess)
bool< SerializeCompilerGeneratedMembers > k__BackingField
virtual JsonContract ResolveContract(Type type)
static bool CanConvertToString(Type type)
virtual IValueProvider CreateMemberValueProvider(MemberInfo member)
void ResolveCallbackMethods(JsonContract contract, Type t)
DefaultContractResolver()
virtual JsonObjectContract CreateObjectContract(Type objectType)
virtual JsonLinqContract CreateLinqContract(Type objectType)
virtual JsonContract CreateContract(Type objectType)
virtual JsonISerializableContract CreateISerializableContract(Type objectType)
static readonly JsonConverter[] BuiltInConverters
bool< IgnoreSerializableAttribute > k__BackingField
void GetCallbackMethodsForType(Type type, [Out] List< SerializationCallback > onSerializing, [Out] List< SerializationCallback > onSerialized, [Out] List< SerializationCallback > onDeserializing, [Out] List< SerializationCallback > onDeserialized, [Out] List< SerializationErrorCallback > onError)
static void SetExtensionDataDelegates(JsonObjectContract contract, MemberInfo member)
virtual JsonProperty CreatePropertyFromConstructorParameter(JsonProperty matchingMemberProperty, ParameterInfo parameterInfo)
static DefaultContractResolver()
static bool IsJsonPrimitiveType(Type t)
static bool ShouldSkipDeserialized(Type t)
bool IgnoreSerializableAttribute
bool ShouldSerializeEntityMember(MemberInfo memberInfo)
bool SerializeCompilerGeneratedMembers
static readonly object TypeContractCacheLock
Predicate< object > CreateShouldSerializeTest(MemberInfo member)
bool DynamicCodeGeneration
Func< object > GetDefaultCreator(Type createdType)
string GetResolvedPropertyName(string propertyName)
virtual string ResolveDictionaryKey(string dictionaryKey)
DefaultContractResolver(bool shareCache)
static bool IsIConvertible(Type t)
void SetPropertySettingsFromAttributes(JsonProperty property, object attributeProvider, string name, Type declaringType, MemberSerialization memberSerialization, [Out] bool allowNonPublicAccess)
List< Type > GetClassHierarchyForType(Type type)
virtual JsonDictionaryContract CreateDictionaryContract(Type objectType)
virtual JsonConverter ResolveContractConverter(Type objectType)
virtual JsonArrayContract CreateArrayContract(Type objectType)
MemberInfo GetExtensionDataMemberForType(Type type)
virtual string ResolvePropertyName(string propertyName)
readonly DefaultContractResolverState _instanceState
static bool ShouldSkipSerializing(Type t)
static string GetClrTypeFullName(Type type)
ConstructorInfo GetAttributeConstructor(Type objectType)
ConstructorInfo GetParameterizedConstructor(Type objectType)
BindingFlags< DefaultMembersSearchFlags > k__BackingField
void InitializeContract(JsonContract contract)
virtual JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
BindingFlags DefaultMembersSearchFlags
static IContractResolver Instance
static JsonConverter GetJsonConverter(object attributeProvider)
static MemberSerialization GetObjectMemberSerialization(Type objectType, bool ignoreSerializableAttribute)
static JsonConverter CreateJsonConverterInstance(Type converterType, object[] converterArgs)
static ReflectionDelegateFactory ReflectionDelegateFactory
static DataContractAttribute GetDataContractAttribute(Type type)
static bool DynamicCodeGeneration
static bool IsIndexedProperty(MemberInfo member)
static bool CanReadMemberValue(MemberInfo member, bool nonPublic)
static Type GetMemberUnderlyingType(MemberInfo member)
static bool HasDefaultConstructor(Type t, bool nonPublic)
static bool IsGenericDefinition(Type type, Type genericInterfaceDefinition)
static bool CanSetMemberValue(MemberInfo member, bool nonPublic, bool canSetReadOnly)
static CultureInfo InvariantCulture
static void Exit(object obj)
static void Enter(object obj)
IEnumerator< T > GetEnumerator()