Class Constant
To support the addition of constants in session and lap item collections
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class Constant : SessionDataItem
Constructors
Constant(String, Boolean, String, String, String)
Initialises a new instance of the Constant class.
Declaration
public Constant(string name, bool value, string description, string units, string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the constant. |
System.Boolean | value | The value of the constant. |
System.String | description | The description of the constant. |
System.String | units | The units the constant uses. |
System.String | format | The format of the constant. |
Constant(String, DateTime, String, String, String)
Initialises a new instance of the Constant class.
Declaration
public Constant(string name, DateTime value, string description, string units, string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the constant. |
System.DateTime | value | The value of the constant. |
System.String | description | The description of the constant. |
System.String | units | The units the constant uses. |
System.String | format | The format of the constant. |
Constant(String, Double, String, String, String)
Initialises a new instance of the Constant class.
Declaration
public Constant(string name, double value, string description, string units, string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the constant. |
System.Double | value | The value of the constant. |
System.String | description | The description of the constant. |
System.String | units | The units the constant uses. |
System.String | format | The format of the constant. |
Constant(String, Int64, String, String, String)
Initialises a new instance of the Constant class.
Declaration
public Constant(string name, long value, string description, string units, string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the constant. |
System.Int64 | value | The value of the constant. |
System.String | description | The description of the constant. |
System.String | units | The units the constant uses. |
System.String | format | The format of the constant. |
Constant(String, String, String, String, String)
Initialises a new instance of the Constant class.
Declaration
public Constant(string name, string value, string description, string units, string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the constant. |
System.String | value | The value of the constant. |
System.String | description | The description of the constant. |
System.String | units | The units the constant uses. |
System.String | format | The format of the constant. |
Properties
AdditionalSelector
Gets or sets the additional selector with is used to differentiate between a constant and a type deriving from this class.
Declaration
protected Nullable<int> AdditionalSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The additional selector. |
Description
Gets the description.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The description. |
Format
Gets the format.
Declaration
public string Format { get; }
Property Value
Type | Description |
---|---|
System.String | The format. |
Units
Gets the units.
Declaration
public string Units { get; }
Property Value
Type | Description |
---|---|
System.String | The units. |
Methods
ToString()
ToString() override.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | System.String representing the constant |
Overrides
ToStringValue()
The string value for the constant.
Declaration
public string ToStringValue()
Returns
Type | Description |
---|---|
System.String | Returns string value |