Class ElementValue
Abstract base class from which all other element value classes are derived.
Inherited Members
Namespace: Quantellia.WMServer.DecisionModeler.ValueTypes
Assembly: WMServer.dll
Syntax
public abstract class ElementValue
Constructors
ElementValue()
Declaration
protected ElementValue()
ElementValue(object)
Declaration
protected ElementValue(object val)
Parameters
Type | Name | Description |
---|---|---|
object | val |
Properties
Type
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
string |
Value
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
Create(object, string)
Factory function to create a new ElementValue based on the type of the object that defines the value.
Declaration
public static ElementValue Create(object val, string format = null)
Parameters
Type | Name | Description |
---|---|---|
object | val | |
string | format |
Returns
Type | Description |
---|---|
ElementValue |
ToCSV(bool, string?, string)
Convert this ElementValue to a CSV string.
Declaration
public virtual string ToCSV(bool includeHeaders = true, string? stringEnclosure = null, string delimiter = ",")
Parameters
Type | Name | Description |
---|---|---|
bool | includeHeaders | Include a header row if set to true. Default is true. |
string | stringEnclosure | Enclose strings within the specified string (default is null). |
string | delimiter | The character used to delimit records. |
Returns
Type | Description |
---|---|
string | The CSV string. |