Click or drag to resize

PropertyAccess class

Access to properties of the current application (AppSettings).
Uses System.Reflection, implements IGetStringValue.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationEnvironmentPropertyAccess

Namespace: NetEti.ApplicationEnvironment
Assembly: NetEti.PropertyAccess (in NetEti.PropertyAccess.dll) Version: 1.0.0+15e05d93a5b6eca3f576235deaede6f5dab57939
Syntax
public class PropertyAccess : IGetStringValue

The PropertyAccess Type exposes the following members.

Constructors
 NameDescription of the
Public MethodPropertyAccess Constructor - loads all properties of the transferred object "owner" (usually AppSettings).
Back to the top
Properties
 NameDescription of the
Public PropertyDescription Returns a descriptive name of this StringValueGetter, e.g. name plus source path if applicable.
Back to the top
Methods
 NameDescription of the
Public MethodGetStringValue Returns exactly one value for a key. If there is no value for the key, defaultValue is returned.
Public MethodGetStringValues Returns a string array for a key. If there is no value for the key, defaultValue is returned. Returns only a single value packed as an array, may have to be be extended.
Public MethodGetValueT Returns exactly one value for a key. If there is no value for the key or the value is not of type T, defaultValue is returned.
Back to the top
Remarks
File: PropertyAccess.cs
Author: Erik Nagel, NetEti

11.01.2018 Erik Nagel: created
See also