FirstOrDefault

LINQ 扩展方法;先尝试 First,若集合为空或条件不成立,就返回 default(T),不会抛异常。
posted @ 2025-10-11 18:18  yinghualeihenmei  阅读(5)  评论(0)    收藏  举报