LoggingProperty(string, object)
Initializes a new instance of the LoggingProperty class with a constant value.
Declaration
public LoggingProperty(string name, object value)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name. |
| object | value | The property value. |
LoggingProperty(string, Func<object>)
Initializes a new instance of the LoggingProperty class with a dynamic value.
Declaration
public LoggingProperty(string name, Func<object> func)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name. |
| Func<object> | func | A function that returns the property value. The function is evaluated every time the Value getter is invoked. |