Class ElectionChoiceID
Simple int wrapper to lend some type safety to elections.
Inheritance
System.Object
ElectionChoiceID
Assembly: Eco.Gameplay.dll
Syntax
public sealed class ElectionChoiceID : ValueType
Constructors
ElectionChoiceID(Int32)
Declaration
public ElectionChoiceID(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Fields
Id
Declaration
Field Value
Type |
Description |
System.Int32 |
|
None
Declaration
public static ElectionChoiceID None
Field Value
Properties
IsSet
Declaration
public bool IsSet { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Operators
Equality(ElectionChoiceID, ElectionChoiceID)
Declaration
public static bool operator ==(ElectionChoiceID left, ElectionChoiceID right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(ElectionChoiceID, ElectionChoiceID)
Declaration
public static bool operator !=(ElectionChoiceID left, ElectionChoiceID right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods