Click or drag to resize
Json.NET

NamingStrategy Class

 
A base class for resolving how property names and dictionary keys are serialized.
Inheritance Hierarchy

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public abstract class NamingStrategy

The NamingStrategy type exposes the following members.

Constructors
  NameDescription
Protected methodNamingStrategy
Initializes a new instance of the NamingStrategy class
Top
Properties
  NameDescription
Public propertyOverrideSpecifiedNames
A flag indicating whether explicitly specified property names, e.g. a property name customized with a JsonPropertyAttribute, should be processed. Defaults to false.
Public propertyProcessDictionaryKeys
A flag indicating whether dictionary keys should be processed. Defaults to false.
Public propertyProcessExtensionDataNames
A flag indicating whether extension data names should be processed. Defaults to false.
Top
Methods
  NameDescription
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 methodGetDictionaryKey
Gets the serialized key for a given dictionary key.
Public methodGetExtensionDataName
Gets the serialized name for a given extension data name.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPropertyName
Gets the serialized name for a given property name.
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.)
Protected methodResolvePropertyName
Resolves the specified property name.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also