Class EnumValueAttribute
Inheritance
EnumValueAttribute
Namespace: BiExcellence.OpenBi.Api.Internal
Assembly: BiExcellence.OpenBi.Api.dll
Syntax
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public sealed class EnumValueAttribute : Attribute
Constructors
EnumValueAttribute(string)
Declaration
public EnumValueAttribute(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value |
Properties
Methods
GetEnumValue<TEnum>(TEnum)
Declaration
public static string GetEnumValue<TEnum>(TEnum value) where TEnum : struct
Parameters
Type | Name | Description |
---|---|---|
TEnum | value |
Returns
Type | Description |
---|---|
string |
Type Parameters
Name | Description |
---|---|
TEnum |
TryParse<TEnum>(string?, bool, out TEnum)
Declaration
public static bool TryParse<TEnum>(string? value, bool ignoreCase, out TEnum result) where TEnum : struct
Parameters
Type | Name | Description |
---|---|---|
string | value | |
bool | ignoreCase | |
TEnum | result |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
TEnum |