Class IntegerEnumeration
- Namespace
- CMS.Plugin.MesSuite.Abstractions.Enums
- Assembly
- CMS.Plugin.MesSuite.Abstractions.dll
枚举类
public class IntegerEnumeration : Enumeration<int>, IEquatable<Enumeration<int>>
- Inheritance
-
IntegerEnumeration
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
IntegerEnumeration()
Initializes a new instance of the IntegerEnumeration class.
public IntegerEnumeration()
IntegerEnumeration(int, string, string)
Initializes a new instance of the IntegerEnumeration class.
public IntegerEnumeration(int value, string name, string description = null)
Parameters
Methods
AbsoluteDifference(Enumeration<int>, Enumeration<int>)
Absolutes the difference.
public static int AbsoluteDifference(Enumeration<int> firstValue, Enumeration<int> secondValue)
Parameters
firstValue
Enumeration<int>The first value.
secondValue
Enumeration<int>The second value.
Returns
GetAll<T>()
Gets all.
public static IEnumerable<T> GetAll<T>() where T : IntegerEnumeration, new()
Returns
- IEnumerable<T>
Type Parameters
T
GetAll<T>(Type)
Gets all.
public static IEnumerable<T> GetAll<T>(Type type) where T : IntegerEnumeration, new()
Parameters
type
TypeThe type.
Returns
- IEnumerable<T>
Type Parameters
T
GetByDescription<T>(string)
Gets the by description.
public static IntegerEnumeration GetByDescription<T>(string description) where T : IntegerEnumeration, new()
Parameters
description
stringThe description.
Returns
Type Parameters
T
GetByName<T>(string)
Gets the name of the by.
public static IntegerEnumeration GetByName<T>(string name) where T : IntegerEnumeration, new()
Parameters
name
stringThe name.
Returns
Type Parameters
T