Linq 学习笔记10 –ToArray, ToList, ToDictionary, OfType操作

by Kimi 27. August 2009 12:31

Kimi Yang

ToArray

示例:

    定义一个匿名类型的结合,对集合进行查询操作,并把结果转换成int数组。

 

    运行结果:

 

 

ToList 和 ToArray操作相同。

 

ToDictionary

示例:

    通过ToDictionary把结合的元素存储到一个Dictionary中。

 

    运行结果:

 

 

OfType

示例:

    使用OfType,取得集合中类型符合的元素。

 

    运行结果:

Tags:

技术文章

Comments

8/1/2010 6:34:10 PM #

making quick money

It can fork out to imagine outside the box when it arrives to doing dollars  Specifically whenever you locate out therea  s in fact a niche for the crazy strategy  Right here are the ten craziest approaches individuals are creating funds  Wall Street wizardry excluded

making quick money | Reply

8/9/2010 8:56:35 AM #

PowellWANDA

Following my exploration, billions of persons on our planet receive the <a href="bestfinance-blog.com/.../business-loans">business loans</a> at different banks. So, there's a good possibility to get a sba loan in all countries.

PowellWANDA | Reply

8/18/2010 1:07:37 AM #

coursework online

My teacher naturally admits my coursework when I order courseworks. Hence, it's great chance to focus on own business!  

coursework online | Reply

8/18/2010 5:04:46 AM #

buy writing paper

It's not easy to manage with two actions one at time, peculiarly when you must compose the argumentative term paper. Only the buying essays online service will deal even with complex assignments.

buy writing paper | Reply

8/22/2010 2:23:46 AM #

buy custom essay

You don't have to get all the stress of term papers finishing simply because professional academic papers writing firms are able to releave your stress suggesting you to buy custom essays and that is perfect, I opine!

buy custom essay | Reply

Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading



Copyright © 2009 APJ Software

最新评论

Comment RSS

公告

欢迎使用APJ Blog!

日历

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar