When using the new explicit nullable reference types features in C# 8.0 (all types must be explicity declared as nullable if they are to be set to null https://docs.microsoft.com/en-us/dotnet/csharp/nullable-references ), how do you handle the following situation:
Say you have some function that returns an IEnumerable of Something?
var result = aFunction()
.Where(data => data != null)
.Select(data => data.Id).ToList();
the data.Id is shown as an error (I have warnings as errors turned on):
because it can be null, even though it is checked to be not null by the Where. I don't want to have to supress the error in this case, is there a way to handle this syntactically?
