Skip to content

PropertyBindingMixins.OneWayBind shows a nullable warning when using a selector #2913

@glennawatson

Description

@glennawatson

Small bug in 16.2.1:
PropertyBindingMixins.OneWayBind shows a nullable warning when using a selector function and a vm property that is not marked nullable.

public static IReactiveBinding<TView, TOut> OneWayBind<TViewModel, TView, TProp, TOut>(this TView view, TViewModel? viewModel, Expression<Func<TViewModel, TProp?>> vmProperty, Expression<Func<TView, TOut>> viewProperty, Func<TProp?, TOut> selector)

I'm assuming you don't need ? for TProp

Originally posted by @HavenDV in #2912 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions