System.IO.Pipelines.ReadResult
why does the ReadResult struct have different properties exposed when i make it nullable?
5 Replies
is it a struct?
yes
then it's because
ReadResult?
is actually Nullable<ReadResult>
and you have to access the Value property to get the actual ReadResult
or use a conditional access operator etc to strip off the nullabilityaah i see, thats odd ive never seen this before and my IDE isnt telling me about it
but thank you appreciate the help
it's the only way structs can be nullable, since a struct itself can never be null