Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2012-03-27から1日間の記事一覧

IEnumerable.ElementAtOrDefaultメソッド

Enumerable.ElementAtOrDefault(TSource) メソッド (System.Linq)シーケンス内の指定されたインデックス位置にある要素を返します。インデックスが範囲外の場合は既定値を返します。 ソースコード using System; using System.Linq; namespace LinqSample { …