Table of Contents

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

value int

The identifier.

name string

The name.

description string

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

int

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 Type

The 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 string

The description.

Returns

IntegerEnumeration

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 string

The name.

Returns

IntegerEnumeration

Type Parameters

T