Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データグリッドに表示したいList<Mail> mailsので、最初の 100 個の要素を新しいリストにコピーしたいと考えています。しかしmails、9000 を超える要素を含めることができるので、使用すると時間がかかりすぎますmails。
List<Mail> mails
mails
LINQ テイク() :
var first100Mails = new List<Mail>(mails.Take(100));