Class CamelCaseStringEnumConverter

Json Converter for enum values that is sent as camelCased string

Inheritance
System.Object
CamelCaseStringEnumConverter
Namespace: EPiServer.Framework.Serialization.Json
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class CamelCaseStringEnumConverter : CasedStringEnumConverter
Examples

AnyEnum.EnumValue is converted to "enumValue" in Json objects

Constructors

CamelCaseStringEnumConverter()

Declaration
public CamelCaseStringEnumConverter()

Methods

FormatValueString(String)

Format the value to camelcase, i.e. set first character to lower case and keep rest of string as is

Declaration
protected override string FormatValueString(string value)
Parameters
Type Name Description
System.String value

value

Returns
Type Description
System.String

A camel cased value

Overrides