Skip to content

PluginObservationSource class

Attributes: [EditorBrowsable(EditorBrowsableState.1)]

Defined in

Namespace: ReactiveUI.Binding.Reactive.Observables Assembly: ReactiveUI.Binding.Reactive.dll Full name: ReactiveUI.Binding.Reactive.Observables.PluginObservationSource Modifiers: public static

Summary

View source

Chooses between the observation the generator emitted for one link of a property chain and a registered ICreatesObservableForProperty that outranks the mechanism it was built from.

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

Remarks

        A link past the first is observed inside the switch that follows its parent, which is an expression rather
        than a statement, so the choice has to be a single call the generated code can sit in that position. Every
        argument is something the generator already knew - the declaring type, the property name, the accessor and
        the expression are all fixed at compile time - so a chain honours a registration link by link without
        anything being resolved by name, and an ahead-of-time consumer carries no expression engine for it.
        

Methods

NameSummary
static ChooseReturns the registration's observation of a property, or the generated one when none outranks it.
Inherited members