C# 3.0 Sets support, a first look(spellcoder.com)

submitted by bashmohandesbashmohandes(3000) 4 years, 10 months ago

I heard that .net 3.5 will have support for Set operations on lists like Union, Intersect so I gave it a try and it turned out to be cool check this out

2 comments |category: |Views: 3

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by senfosenfo(881) 4 years, 10 months ago 0

What's with the use of the var keyword in this situation? Seems quite abusive.

Reply

posted by ajdotnetajdotnet(2940) 4 years, 10 months ago 0

Why? It's just syntactic sugar to avoid having to type the type twice in each line. And it's designed specifically for that, i.e. intended usage rather than abuse.
Please note: 'var' does not mean typeless/nothing/latebound (as in other deranged languages ;-)). Rather it tells the compiler to use the type of the assigned value (type inference).

Reply

information Login or create an account to comment on this story