Show / Hide Table of Contents

Class ElementValue

Abstract base class from which all other element value classes are derived.

Inheritance
object
ElementValue
AtomicElementValue
CollectionElementValue
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE