If you don't go after what you want, you'll never have it. If you don't step forward, you're always in the same place.

摘要: 工作中遇到的常用方法: Parse and TryParse TryParse 方法类似于 Parse 方法,不同之处在于 TryParse 方法在转换失败时不引发异常 1 /// <summary> 2 /// TryParse 方法类似于 Parse 方法,不同之处在于 TryParse 方法在 阅读全文
posted @ 2014-11-19 12:15 BlackAnts 阅读(15975) 评论(0) 推荐(0)
摘要: 在工作中我们经常会遇到有关LINQ 的一些问题。这时我们就用到lambda 表达式。下面是我在工作遇到的。 First and FirstOrDefault 这两方法。我今天把它记录一下。需要注意的是我标注红色的部分,这是它们俩的区别。First and FirstOrDefault 1 #regi... 阅读全文
posted @ 2014-11-19 11:58 BlackAnts 阅读(53485) 评论(2) 推荐(3)