Show / Hide Table of Contents

Class StringEnum

Inheritance
System.Object
StringEnum
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core.Properties
Assembly: Experior.Core.dll
Syntax
public class StringEnum

Constructors

StringEnum(Type)

Declaration
public StringEnum(Type enumType)
Parameters
Type Name Description
System.Type enumType

Properties

EnumType

Declaration
public Type EnumType { get; }
Property Value
Type Description
System.Type

Methods

GetListValues()

Declaration
public IList GetListValues()
Returns
Type Description
System.Collections.IList

GetStringValue(Enum)

Declaration
public static string GetStringValue(Enum value)
Parameters
Type Name Description
System.Enum value
Returns
Type Description
System.String

GetStringValue(String)

Declaration
public string GetStringValue(string valueName)
Parameters
Type Name Description
System.String valueName
Returns
Type Description
System.String

GetStringValues()

Declaration
public Array GetStringValues()
Returns
Type Description
System.Array

IsStringDefined(String)

Declaration
public bool IsStringDefined(string stringValue)
Parameters
Type Name Description
System.String stringValue
Returns
Type Description
System.Boolean

IsStringDefined(String, Boolean)

Declaration
public bool IsStringDefined(string stringValue, bool ignoreCase)
Parameters
Type Name Description
System.String stringValue
System.Boolean ignoreCase
Returns
Type Description
System.Boolean

IsStringDefined(Type, String)

Declaration
public static bool IsStringDefined(Type enumType, string stringValue)
Parameters
Type Name Description
System.Type enumType
System.String stringValue
Returns
Type Description
System.Boolean

IsStringDefined(Type, String, Boolean)

Declaration
public static bool IsStringDefined(Type enumType, string stringValue, bool ignoreCase)
Parameters
Type Name Description
System.Type enumType
System.String stringValue
System.Boolean ignoreCase
Returns
Type Description
System.Boolean

Parse(Type, String)

Declaration
public static object Parse(Type type, string stringValue)
Parameters
Type Name Description
System.Type type
System.String stringValue
Returns
Type Description
System.Object

Parse(Type, String, Boolean)

Declaration
public static object Parse(Type type, string stringValue, bool ignoreCase)
Parameters
Type Name Description
System.Type type
System.String stringValue
System.Boolean ignoreCase
Returns
Type Description
System.Object
Back to top Generated by DocFX