Skip to content

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-ios18.0, net9.0-macos15.0, net9.0-desktop1.0, net8.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, netstandard2.1, net481, net462, net471

public PluginPropertyObservable(ICreatesObservableForProperty plugin, object source, Expression expression, string propertyName, Func<object, T?> getter, bool beforeChange, bool distinctUntilChanged)

View source

Summary: Initializes a new instance of the PluginPropertyObservable class.

Parameters

NameTypeDescription
plugin[ICreatesObservableForProperty](#The registration that outranked the generated mechanism.
sourceobjectThe object the property is read from.
expressionExpressionThe property as the call site named it.
propertyNamestringThe name of the property being observed.
getterFuncReads the current property value from the source.
beforeChangeboolWhether before-change notifications are being observed.
distinctUntilChangedboolWhether to suppress duplicate consecutive values.