Class UpperCaseStringEnumConverter

Json Converter for enum values that is sent as upper cased string

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

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

Constructors

UpperCaseStringEnumConverter()

Declaration
public UpperCaseStringEnumConverter()

Methods

FormatValueString(String)

Format string value to upper case

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