Class Enumeration
Inheritance
System.Object
Enumeration
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Catalyst.Abstractions.dll
Syntax
public class Enumeration : IEnumeration, IEquatable<Enumeration>
Constructors
|
Improve this Doc
View Source
Enumeration(Int32, String)
Declaration
protected Enumeration(int id, string name)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.String |
name |
|
Properties
|
Improve this Doc
View Source
Id
Declaration
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Equals(Enumeration)
Declaration
public bool Equals(Enumeration other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetAll<T>()
Declaration
public static IEnumerable<T> GetAll<T>()
where T : IEnumeration
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Type Parameters
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
Parse<T>(String, StringComparison)
Declaration
public static T Parse<T>(string value, StringComparison comparison = StringComparison.InvariantCultureIgnoreCase)
where T : Enumeration
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.StringComparison |
comparison |
|
Returns
Type Parameters
Exceptions
Type |
Condition |
System.FormatException |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
TryParse<T>(String, out T, StringComparison)
Declaration
public static bool TryParse<T>(string value, out T parsed, StringComparison comparison = StringComparison.InvariantCultureIgnoreCase)
where T : Enumeration
Parameters
Type |
Name |
Description |
System.String |
value |
|
T |
parsed |
|
System.StringComparison |
comparison |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Operators
|
Improve this Doc
View Source
Equality(Enumeration, Enumeration)
Declaration
public static bool operator ==(Enumeration left, Enumeration right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Explicit(Enumeration to Int32)
Declaration
public static explicit operator int (Enumeration enumeration)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Inequality(Enumeration, Enumeration)
Declaration
public static bool operator !=(Enumeration left, Enumeration right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>