Skip to content

Class DefValue

Namespace: Apogee.Content.Xml
Assembly: Apogee.Content.dll

What a definition decodes into (): text, a number, a boolean, a list, or a record of named members, nested as deep as the XML was. A plain tree that scripts, tools and C# read alike; writes it compactly ({id: "crate", weight: 12.5, tags: ["a", "b"]}), which is what tests compare.

public abstract class DefValue

Inheritance

object ← DefValue

Derived

DefBool, DefList, DefNumber, DefRecord, DefText, DefVector

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Kind

public abstract DefKind Kind { get; }

Property Value

DefKind

Methods

From(string)

public static DefValue From(string text)

Parameters

text string

Returns

DefValue

From(double)

public static DefValue From(double number)

Parameters

number double

Returns

DefValue

From(bool)

public static DefValue From(bool value)

Parameters

value bool

Returns

DefValue

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.