Table of Contents

Class PropertyStore

Namespace
Dassie.Configuration
Assembly
dc.dll

Provides functionality for evaluating and storing configuration properties.

public class PropertyStore
Inheritance
PropertyStore
Inherited Members
Extension Methods

Constructors

PropertyStore(IEnumerable<Property>)

Initializes a new PropertyStore based on the specified property registrations.

public PropertyStore(IEnumerable<Property> defs)

Parameters

defs IEnumerable<Property>

The properties to register.

Properties

Empty

Creates a new property store without any registered properties.

public static PropertyStore Empty { get; }

Property Value

PropertyStore

Methods

Get(string)

Evaluates a property.

public object Get(string key)

Parameters

key string

The key of the property to evaluate.

Returns

object

The value of the requested property.

Set(string, object)

Sets the value of a property.

public void Set(string key, object value)

Parameters

key string

The name of the property to set.

value object

The value to set the property represented by key to.