Click or drag to resize
Json.NET

SnakeCaseNamingStrategy Class

 
A snake case naming strategy.
Inheritance Hierarchy
SystemObject
  Newtonsoft.Json.SerializationNamingStrategy
    Newtonsoft.Json.SerializationSnakeCaseNamingStrategy

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

The SnakeCaseNamingStrategy type exposes the following members.

Constructors
  NameDescription
Public methodSnakeCaseNamingStrategy
Initializes a new instance of the SnakeCaseNamingStrategy class.
Public methodSnakeCaseNamingStrategy(Boolean, Boolean)
Initializes a new instance of the SnakeCaseNamingStrategy class.
Public methodSnakeCaseNamingStrategy(Boolean, Boolean, Boolean)
Initializes a new instance of the SnakeCaseNamingStrategy 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.
(Inherited from NamingStrategy.)
Public propertyProcessDictionaryKeys
A flag indicating whether dictionary keys should be processed. Defaults to false.
(Inherited from NamingStrategy.)
Public propertyProcessExtensionDataNames
A flag indicating whether extension data names should be processed. Defaults to false.
(Inherited from NamingStrategy.)
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.
(Inherited from NamingStrategy.)
Public methodGetExtensionDataName
Gets the serialized name for a given extension data name.
(Inherited from NamingStrategy.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPropertyName
Gets the serialized name for a given property name.
(Inherited from NamingStrategy.)
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.
(Overrides NamingStrategyResolvePropertyName(String).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also