堆代碼的時候,出現了個錯誤,錯誤如下:
'System.Collections.Generic.List<Struct1>' に 'ElementAt' の定義が含まれておらず、型 'System.Collections.Generic.List<Struct1>' の最初の引數を受け付ける拡張メソッドが見つかりませんでした。using ディレクティブまたはアセンブリ參照が不足しています。
找了半天在知道原因,沒有引入“using System.Linq;”。
using System.Linq;