Appearance
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
| Name | Description |
|---|---|
preferTextValue | Indicate that text values are prefered in the JSON string |
type | The enum type to process |
Returns
JSON String