Table of Contents

ResolveDictionaryKeyByConvention Method

Definition

Namespace
Savvyio.Extensions.Newtonsoft.Json
Assemblies
Savvyio.Extensions.Newtonsoft.Json.dll
Source
src/Savvyio.Extensions.Newtonsoft.Json/JsonSerializerExtensions.cs

ResolveDictionaryKeyByConvention(JsonSerializer, string)

Resolves the dictionary key by convention using the specified Newtonsoft.Json.JsonSerializer.

public static string ResolveDictionaryKeyByConvention(this JsonSerializer serializer, string name)

Parameters

serializer JsonSerializer

The Newtonsoft.Json.JsonSerializer to use for resolving the dictionary key.

name string

The name of the dictionary key to resolve.

Returns

string

The resolved dictionary key.