• Guides
  • API Reference
  • Changelog
Show / Hide Table of Contents
  • DCR
    • EventKind
    • Expression
    • Flat
    • Graph
    • IEvent
    • Marking
    • NotEnabled
    • Path
    • TimeManager
    • Tools
    • UserNotAllowed
    • Value
  • DCR.Time
    • Duration
    • Timezones

Class Value

An event in a DCR graph may have an associated value. This class represents such values.

Inheritance
System.Object
Value
Namespace: DCR
Assembly: Engine.dll
Syntax
public class Value : Object

Constructors

Value()

Construct with default value (null)

Declaration
public Value()

Value(Boolean)

Declaration
public Value(bool b)
Parameters
Type Name Description
System.Boolean b

Value(Int32)

Construct a Value carrying the given integer.

Declaration
public Value(int i)
Parameters
Type Name Description
System.Int32 i

Value(String)

Construct a Value carrying the given string.

Declaration
public Value(string str)
Parameters
Type Name Description
System.String str

Value(XDocument)

Deserialize a Value from XML

Declaration
public Value(XDocument doc)
Parameters
Type Name Description
System.Xml.Linq.XDocument doc

Properties

value

Declaration
public Data.value value { get; set; }
Property Value
Type Description
DCR.Core.Data.value

Methods

Parse(String)

Parse a value from a string, choosing the type of the value accordingly.

Declaration
public static Value Parse(string s)
Parameters
Type Name Description
System.String s

String to parse. The syntax accepted here is the same as the syntax for constant expressions.

Returns
Type Description
Value
Examples
String Meaning
foo string "foo"
1 integer 1

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
In This Article
Back to top © 2019 DCR Solutions