Class EnumMemberContract
- Namespace
- ShapeShift.Schema
- Assembly
- ShapeShift.dll
Describes one named member of an EnumContract.
public sealed class EnumMemberContract
- Inheritance
-
EnumMemberContract
- Inherited Members
Constructors
EnumMemberContract(string, ShapeShiftValue)
Describes one named member of an EnumContract.
public EnumMemberContract(string name, ShapeShiftValue value)
Parameters
namestringThe name of the enum member.
valueShapeShiftValueThe underlying numeric value of the enum member.
Properties
Name
Gets the name of the enum member.
public string Name { get; }
Property Value
Value
Gets the underlying numeric value of the enum member.
public ShapeShiftValue Value { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.