Click or drag to resize
Json.NET

CamelCasePropertyNamesContractResolver Class

 
Resolves member mappings for a type, camel casing property names.
Inheritance Hierarchy
SystemObject
  Newtonsoft.Json.SerializationDefaultContractResolver
    Newtonsoft.Json.SerializationCamelCasePropertyNamesContractResolver

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 11.0.1
Syntax
C#
public class CamelCasePropertyNamesContractResolver : DefaultContractResolver

The CamelCasePropertyNamesContractResolver type exposes the following members.

Constructors
  NameDescription
Public methodCamelCasePropertyNamesContractResolver
Initializes a new instance of the CamelCasePropertyNamesContractResolver class.
Top
Properties
  NameDescription
Public propertyDefaultMembersSearchFlags Obsolete.
Gets or sets the default members search flags.
(Inherited from DefaultContractResolver.)
Public propertyDynamicCodeGeneration
Gets a value indicating whether members are being get and set using dynamic code generation. This value is determined by the runtime permissions available.
(Inherited from DefaultContractResolver.)
Public propertyIgnoreIsSpecifiedMembers
Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types.
(Inherited from DefaultContractResolver.)
Public propertyIgnoreSerializableAttribute
Gets or sets a value indicating whether to ignore the SerializableAttribute attribute when serializing and deserializing types.
(Inherited from DefaultContractResolver.)
Public propertyIgnoreSerializableInterface
Gets or sets a value indicating whether to ignore the ISerializable interface when serializing and deserializing types.
(Inherited from DefaultContractResolver.)
Public propertyIgnoreShouldSerializeMembers
Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types.
(Inherited from DefaultContractResolver.)
Public propertyNamingStrategy
Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized.
(Inherited from DefaultContractResolver.)
Public propertySerializeCompilerGeneratedMembers
Gets or sets a value indicating whether compiler generated members should be serialized.
(Inherited from DefaultContractResolver.)
Top
Methods
  NameDescription
Protected methodCreateArrayContract
Creates a JsonArrayContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateConstructorParameters
Creates the constructor parameters.
(Inherited from DefaultContractResolver.)
Protected methodCreateContract
Determines which contract type is created for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateDictionaryContract
Creates a JsonDictionaryContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateDynamicContract
Creates a JsonDynamicContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateISerializableContract
Creates a JsonISerializableContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateLinqContract
Creates a JsonLinqContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateMemberValueProvider
Creates the IValueProvider used by the serializer to get and set values from a member.
(Inherited from DefaultContractResolver.)
Protected methodCreateObjectContract
Creates a JsonObjectContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreatePrimitiveContract
Creates a JsonPrimitiveContract for the given type.
(Inherited from DefaultContractResolver.)
Protected methodCreateProperties
Creates properties for the given JsonContract.
(Inherited from DefaultContractResolver.)
Protected methodCreateProperty
Creates a JsonProperty for the given MemberInfo.
(Inherited from DefaultContractResolver.)
Protected methodCreatePropertyFromConstructorParameter
Creates a JsonProperty for the given ParameterInfo.
(Inherited from DefaultContractResolver.)
Protected methodCreateStringContract
Creates a JsonStringContract for the given type.
(Inherited from DefaultContractResolver.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetResolvedPropertyName
Gets the resolved name of the property.
(Inherited from DefaultContractResolver.)
Protected methodGetSerializableMembers
Gets the serializable members for the type.
(Inherited from DefaultContractResolver.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResolveContract
Resolves the contract for a given type.
(Overrides DefaultContractResolverResolveContract(Type).)
Protected methodResolveContractConverter
Resolves the default JsonConverter for the contract.
(Inherited from DefaultContractResolver.)
Protected methodResolveDictionaryKey
Resolves the key of the dictionary. By default ResolvePropertyName(String) is used to resolve dictionary keys.
(Inherited from DefaultContractResolver.)
Protected methodResolveExtensionDataName
Resolves the name of the extension data. By default no changes are made to extension data names.
(Inherited from DefaultContractResolver.)
Protected methodResolvePropertyName
Resolves the name of the property.
(Inherited from DefaultContractResolver.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also