LoggingProperty(string, object?)
Initializes a new instance of the LoggingProperty class specifying a constant value.
Declaration
public LoggingProperty(string name, object? value)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Property name. |
| object | value | Property value. |
LoggingProperty(string, Func<object>)
Initializes a new instance of the LoggingProperty class specifying a dynamic value.
Declaration
public LoggingProperty(string name, Func<object> func)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Property name. |
| Func<object> | func | A function returning the property value. This function will be evaluated every time the Value getter is invoked. |