LoggingProperty Constructor (String, Func<Object>) |
Initializes a new LoggingProperty and assigns it to a dynamic value.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public LoggingProperty( string name, Func<Object> func )
Parameters
- name
- Type: System.String
Property name. - func
- Type: System.Func<Object>
A function returning the property value. This function will be evaluated every time the Value getter is invoked.