开发者

Prevent Null Value's return

开发者 https://www.devze.com 2023-01-14 18:27 出处:网络
How to Prevent Null Value开发者_如何学JAVA\'s return in Linqvar noNulls = from someImaginaryItem in someImaginaryCollection

How to Prevent Null Value开发者_如何学JAVA's return in Linq


var noNulls = from someImaginaryItem in someImaginaryCollection
              where someImaginaryItem.SomeImaginaryNullableProperty != null
              select someImaginaryItem;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号