C# Class Newtonsoft.Json.Serialization.NamingStrategy

A base class for resolving how property names and dictionary keys are serialized.
Show file Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Public Methods

Method Description
GetDictionaryKey ( string key ) : string

Gets the serialized key for a given dictionary key.

GetPropertyName ( string name, bool hasSpecifiedName ) : string

Gets the serialized name for a given property name.

Protected Methods

Method Description
ResolvePropertyName ( string name ) : string

Resolves the specified property name.

Method Details

GetDictionaryKey() public method

Gets the serialized key for a given dictionary key.
public GetDictionaryKey ( string key ) : string
key string The initial dictionary key.
return string

GetPropertyName() public method

Gets the serialized name for a given property name.
public GetPropertyName ( string name, bool hasSpecifiedName ) : string
name string The initial property name.
hasSpecifiedName bool A flag indicating whether the property has had a name explicitly specified.
return string

ResolvePropertyName() protected abstract method

Resolves the specified property name.
protected abstract ResolvePropertyName ( string name ) : string
name string The property name to resolve.
return string