Class UniEnum
Inheritance
System.Object
UniEnum
Assembly: UniEnum.dll
Syntax
public static class UniEnum : object
Methods
|
Improve this Doc
View Source
GetCount<T>()
Declaration
public static int GetCount<T>()
where T : struct, Enum
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
GetMaxValue<T>()
Declaration
public static T GetMaxValue<T>()
where T : struct, Enum
Returns
Type Parameters
|
Improve this Doc
View Source
GetMinValue<T>()
Declaration
public static T GetMinValue<T>()
where T : struct, Enum
Returns
Type Parameters
|
Improve this Doc
View Source
GetName<T>(T)
Declaration
public static string GetName<T>(T v)
where T : struct, Enum
Parameters
Type |
Name |
Description |
T |
v |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
|
Improve this Doc
View Source
GetNames<T>()
Declaration
public static ReadOnlyArray<string> GetNames<T>()
where T : Enum
Returns
Type Parameters
|
Improve this Doc
View Source
GetValues<T>()
Declaration
public static ReadOnlyArray<T> GetValues<T>()
where T : struct, Enum
Returns
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(T)
Declaration
public static bool IsDefined<T>(T value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
T |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(Byte)
Declaration
public static bool IsDefined<T>(byte value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.Byte |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(Int16)
Declaration
public static bool IsDefined<T>(short value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.Int16 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(Int32)
Declaration
public static bool IsDefined<T>(int value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(Int64)
Declaration
public static bool IsDefined<T>(long value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.Int64 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(SByte)
Declaration
public static bool IsDefined<T>(sbyte value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.SByte |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(UInt16)
Declaration
public static bool IsDefined<T>(ushort value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.UInt16 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(UInt32)
Declaration
public static bool IsDefined<T>(uint value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.UInt32 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
IsDefined<T>(UInt64)
Declaration
public static bool IsDefined<T>(ulong value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.UInt64 |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryParse<T>(String, out T)
Declaration
public static bool TryParse<T>(string text, out T result)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.String |
text |
|
T |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
TryParse<T>(String, Boolean, out T)
Declaration
public static bool TryParse<T>(string text, bool ignoreCase, out T result)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Boolean |
ignoreCase |
|
T |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters