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
defsIEnumerable<Property>The properties to register.
Properties
Empty
Creates a new property store without any registered properties.
public static PropertyStore Empty { get; }
Property Value
Methods
Get(string)
Evaluates a property.
public object Get(string key)
Parameters
keystringThe 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)