Table of Contents

Class ConfigObject

Namespace
Dassie.Configuration
Assembly
dc.dll

Represents an XML-backed configuration object.

public abstract class ConfigObject
Inheritance
ConfigObject
Derived
Inherited Members
Extension Methods

Constructors

ConfigObject()

Initializes a new instance of the ConfigObject type backed by an empty PropertyStore.

protected ConfigObject()

ConfigObject(PropertyStore)

Initializes a new instance of the ConfigObject type backed by the specified PropertyStore.

protected ConfigObject(PropertyStore store)

Parameters

store PropertyStore

Properties

Node

Generates an XML node representing this configuration object.

public virtual XNode Node { get; }

Property Value

XNode

Methods

Get<T>(string)

Evaluates a property of the configuration object.

protected T Get<T>(string name)

Parameters

name string

The name of the property to evaluate.

Returns

T

The value of the specified property.

Type Parameters

T

The type of the property to evaluate.

Set(string, object)

Sets the specified property.

protected void Set(string name, object value)

Parameters

name string

The name of the property to set.

value object

The value to set the property represented by name to.