Skip to content

GetEnumJson Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

string GetEnumJson(Type type, bool preferTextValue = null) ​

csharp
string GetEnumJson(Type type, bool preferTextValue = null)

Returns a JSON string representing the Label and values for a C# enum Type

Parameters ​

NameDescription
preferTextValueIndicate that text values are prefered in the JSON string
typeThe enum type to process

Returns ​

JSON String