C# Class Newtonsoft.Json.Serialization.NamingStrategy

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
ResolvePropertyName ( string name ) : string

Resolves the specified property name.

Method Details

GetDictionaryKey() public méthode

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

GetPropertyName() public méthode

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.
Résultat string

ResolvePropertyName() protected abstract méthode

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