PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Property Class / Logging­Property Constructor / Logging­Property Constructor (String, Func(Object))

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.7.12.0 (6.7.12.0)
Syntax
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.
See Also