C++ C#

LazyProperty(INotifyPropertySourceChanged, string, Func<T>, Action<T>, Func<T, bool>, Action<LazyProperty<T>>) Method

API Reference

Namespace: Semata.Lazy

Class: LazyProperty<T>

Creates the LazyProperty.

public  LazyProperty(INotifyPropertySourceChanged source, string sourcePropertyName, Func<T> propertyGet, Action<T> propertySet, Func<T, bool> isChanged, Action<LazyProperty<T>> propertyChangedAction)

Parameters

Type Name Description
INotifyPropertySourceChanged source the object that implements INotifyPropertySourceChanged. Usually the owning object
string sourcePropertyName The name used to identify this property
Func<T> propertyGet A delegate that returns a value of type T. Initializes the value
Action<T> propertySet A delegate that takes a value of type T. Sets the value
Func<T, bool> isChanged A delegate that takes a value of type T and returns a boolean. Checks the value has changed
Action<LazyProperty<T>> propertyChangedAction A delegate that takes a value of type T. Typically used for raising PropertyChanged on owning object

This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.