Table of Contents

Class Enumeration

Namespace
CMS.Plugin.MesSuite.Abstractions.Enums
Assembly
CMS.Plugin.MesSuite.Abstractions.dll

枚举类

public class Enumeration : Enumeration<object>, IEquatable<Enumeration<object>>
Inheritance
Enumeration
Implements
Derived
Inherited Members

Constructors

Enumeration()

Initializes a new instance of the Enumeration class.

public Enumeration()

Enumeration(object, string, string)

Initializes a new instance of the StringEnumeration class.

public Enumeration(object value, string name, string description = null)

Parameters

value object

The identifier.

name string

The name.

description string

Methods

GetAllGuidEnumeration<T>()

Gets all integer enumeration.

public static IEnumerable<Enumeration> GetAllGuidEnumeration<T>() where T : GuidEnumeration, new()

Returns

IEnumerable<Enumeration>

Type Parameters

T

GetAllIntegerEnumeration<T>()

Gets all integer enumeration.

public static IEnumerable<Enumeration> GetAllIntegerEnumeration<T>() where T : IntegerEnumeration, new()

Returns

IEnumerable<Enumeration>

Type Parameters

T

GetAllStringEnumeration<T>()

Gets all integer enumeration.

public static IEnumerable<Enumeration> GetAllStringEnumeration<T>() where T : StringEnumeration, new()

Returns

IEnumerable<Enumeration>

Type Parameters

T

GetAll<T>()

Gets all.

public static IEnumerable<T> GetAll<T>() where T : Enumeration, new()

Returns

IEnumerable<T>

Type Parameters

T

GetAll<T>(Type)

Gets all.

public static IEnumerable<T> GetAll<T>(Type type) where T : Enumeration, new()

Parameters

type Type

The type.

Returns

IEnumerable<T>

Type Parameters

T