Sometime you want to check that something is there, and that when it is, it also has a specific value.

This is a nice way to do it

public bool RequireUserConfirmation =>
            GasDayInPastData != null &&
            !GasDayInPastData.UserConfirmed;
Advertisements