Table of Contents

Class GenericEnum<T>

Namespace
Skyline.DataMiner.Net.GenericEnums
Assembly
SLNetTypes.dll

Represents a generic enum.

[Serializable]
public class GenericEnum<T> : IGenericEnum

Type Parameters

T

The underlying type.

Inheritance
GenericEnum<T>
Implements
Extension Methods

Constructors

GenericEnum()

Initializes a new instance of the GenericEnum<T> class.

Properties

Entries

Gets the enum entries.

EnumName

Gets or sets the enum name.

Methods

AddEntry(string, T)

Adds a new entry to the enum with the specified display name and value.

AddEntry(string, T, bool)

Adds a new entry to the enum with the specified display name and value.

Equals(GenericEnum<T>)

Indicates whether the current object is equal to another object of the same type.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Calculates the hash code for this object.

RemoveEntryByName(string)

Removes the entry with the specified display name.

RemoveEntryByValue(T)

Removes the entry with the specified value.

ToString()

Returns a string that represents the current object.