Class EnumExtensions
Extension methods for langword_csharp_enum types.
Inheritance
Namespace: X10D.Core
Assembly: X10D.dll
Syntax
public static class EnumExtensions : object
Methods
| Improve this Doc View SourceNext<T>(T)
Returns the value which is defined proceeding this value in the enumeration.
Declaration
public static T Next<T>(this T value)
where T : struct, Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | The value whose proceeding value to retrieve. |
Returns
Type | Description |
---|---|
T | A value of |
Type Parameters
Name | Description |
---|---|
T | The type of the enumeration. |
NextUnchecked<T>(T)
Returns the value which is defined proceeding this value in the enumeration.
Declaration
public static T NextUnchecked<T>(this T value)
where T : struct, Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | The value whose proceeding value to retrieve. |
Returns
Type | Description |
---|---|
T | A value of |
Type Parameters
Name | Description |
---|---|
T | The type of the enumeration. |
Previous<T>(T)
Returns the value which is defined preceeding this value in the enumeration.
Declaration
public static T Previous<T>(this T value)
where T : struct, Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | The value whose preceeding value to retrieve. |
Returns
Type | Description |
---|---|
T | A value of |
Type Parameters
Name | Description |
---|---|
T | The type of the enumeration. |
PreviousUnchecked<T>(T)
Returns the value which is defined preceeding this value in the enumeration.
Declaration
public static T PreviousUnchecked<T>(this T value)
where T : struct, Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | The value whose preceeding value to retrieve. |
Returns
Type | Description |
---|---|
T | A value of |
Type Parameters
Name | Description |
---|---|
T | The type of the enumeration. |