This short post will kick off a series covering some of the new features in C#.
One small but much requested feature is the ability to use any kind of collection for params. Previously you had to pass in an array:
public void MyMethod(int firstParam, params string[] otherParams)
{
foreach (var param in otherParams)
{
Console.WriteLine(param);
}
}
But now you can pass in any kind of collection,
public void MyMethod(int firstParam, params List<string> otherParams)
{
foreach (var param in otherParams)
{
Console.WriteLine(param);
}
}
This can save a great deal of fussing, converting your collection to an array and back.
Please note that this is a preview feature. Fortunately, Intellisense will convert your project for you. When you put this in you’ll get the dreaded red squiggly. Click on the light bulb and let it convert your project. Hey! Presto! it works.
We’ll look at a few bigger features in coming blog posts.

I haven’t checked in here for some time since I thought it was getting boring, but the last few posts are good quality so I guess I’ll add you back to my everyday bloglist. You deserve it my friend 🙂
Really excellent visual appeal on this site, I’d rate it 10 10.
I like this site very much, Its a rattling nice position to read and incur information. “You have to lead people gently toward what they already know is right.” by Philip.
hello there and thank you on your information – I have definitely picked up something new from proper here. I did then again experience a few technical issues the use of this site, since I experienced to reload the website a lot of times prior to I could get it to load correctly. I had been thinking about in case your hosting is OK? Now not that I am complaining, but sluggish loading instances instances will often impact your placement in google and could damage your high-quality rating if ads and ***********|advertising|advertising|advertising and *********** with Adwords. Well I am including this RSS to my e-mail and could look out for much extra of your respective fascinating content. Make sure you replace this again soon..
I just could not leave your website prior to suggesting that I extremely loved the standard info an individual supply on your visitors? Is going to be back ceaselessly in order to check up on new posts
I have recently started a web site, the information you provide on this web site has helped me greatly. Thanks for all of your time & work.
I admire your work, thankyou for all the great content.
I have been absent for some time, but now I remember why I used to love this blog. Thank you, I will try and check back more often. How frequently you update your web site?
I have been checking out a few of your articles and it’s pretty clever stuff. I will surely bookmark your site.
Thanks for the blog post, can you make it so I get an alert email when there is a new update?
Yay google is my king helped me to find this great website ! .
479878 63412Read more on that Post.Useful information. 454000
Undeniably believe that which you stated. Your favorite reason appeared to be on the internet the simplest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks
You really make it appear really easy along with your presentation however I in finding this matter to be really one thing which I feel I’d never understand. It kind of feels too complicated and extremely vast for me. I’m having a look ahead in your next submit, I¦ll try to get the dangle of it!
Utterly pent articles, Really enjoyed reading through.
F*ckin’ tremendous things here. I am very glad to see your post. Thanks a lot and i’m looking forward to contact you. Will you kindly drop me a mail?
Hello, Neat post. There’s an issue along with your web site in web explorer, may test thisK IE still is the marketplace leader and a good portion of folks will miss your wonderful writing due to this problem.
I’d should verify with you here. Which is not something I normally do! I enjoy reading a submit that may make folks think. Also, thanks for permitting me to comment!
Simply wanna input on few general things, The website style is perfect, the subject matter is really wonderful : D.
You have brought up a very excellent points, appreciate it for the post.
Very good info can be found on website. “I don’t know what will be used in the next world war, but the 4th will be fought with stones.” by Albert Einstein.
Fantastic web site. Plenty of useful information here. I’m sending it to a few friends ans also sharing in delicious. And certainly, thanks for your effort!
Hello, you used to write wonderful, but the last several posts have been kinda boring… I miss your tremendous writings. Past several posts are just a little out of track! come on!
The Pink Salt Trick is a minimalist but effective morning routine: Just drink a glass of lukewarm water mixed with a pinch of Himalayan pink salt as soon as you wake up.
Very interesting information!Perfect just what I was searching for!
The Pink Salt Trick is a minimalist but effective morning routine: Just drink a glass of lukewarm water mixed with a pinch of Himalayan pink salt as soon as you wake up.
The Pink Salt Trick is a minimalist but effective morning routine: Just drink a glass of lukewarm water mixed with a pinch of Himalayan pink salt as soon as you wake up.
Your home is valueble for me. Thanks!…
The Pink Salt Trick is a minimalist but effective morning routine: Just drink a glass of lukewarm water mixed with a pinch of Himalayan pink salt as soon as you wake up.
Thanks for your personal marvelous posting! I actually enjoyed reading it, you’re a great author.I will be sure to bookmark your blog and may come back from now on. I want to encourage continue your great job, have a nice day!
364908 165191As I web site owner I believe the articles here is really amazing , thankyou for your efforts. 690107
495622 32739Pretty section of content material. I just stumbled upon your site and in accession capital to assert that I get in fact enjoyed account your weblog posts. Any way Ill be subscribing to your feeds and even I achievement you access consistently quickly. 726522
The Pink Salt Trick is a minimalist but effective morning routine: Just drink a glass of lukewarm water mixed with a pinch of Himalayan pink salt as soon as you wake up.
I definitely wanted to write down a brief comment in order to say thanks to you for those splendid ideas you are showing here. My extended internet lookup has finally been compensated with extremely good content to share with my guests. I would state that that many of us site visitors are quite fortunate to be in a great website with so many brilliant individuals with great tricks. I feel pretty fortunate to have discovered the web page and look forward to many more fabulous moments reading here. Thanks a lot again for everything.
Yeah bookmaking this wasn’t a speculative conclusion great post! .
Some really interesting information, well written and generally user genial.
Hey! I just would like to give an enormous thumbs up for the good information you have got right here on this post. I shall be coming back to your weblog for extra soon.
hello there and thank you to your information – I have definitely picked up anything new from right here. I did however experience several technical points using this web site, as I skilled to reload the site lots of instances previous to I may get it to load properly. I were considering in case your web hosting is OK? Now not that I’m complaining, however sluggish loading instances instances will often have an effect on your placement in google and can damage your high quality rating if ads and ***********|advertising|advertising|advertising and *********** with Adwords. Anyway I’m including this RSS to my e-mail and could glance out for much more of your respective exciting content. Ensure that you replace this once more soon..
Saved as a favorite, I really like your blog!
I truly enjoy studying on this internet site, it holds good posts. “Literature is the orchestration of platitudes.” by Thornton.
I’ve been surfing on-line greater than three hours lately, yet I by no means found any interesting article like yours. It’s lovely worth sufficient for me. Personally, if all site owners and bloggers made good content as you probably did, the net will be a lot more useful than ever before.
Hello my loved one! I want to say that this article is amazing, great written and include approximately all significant infos. I’d like to look extra posts like this .
Very interesting points you have mentioned, appreciate it for posting. “Oh, what a tangled web we weave, When first we practice to deceive” by Sir Walter Scott.
I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again!
But wanna admit that this is very beneficial, Thanks for taking your time to write this.
Howdy are using WordPress for your blog platform? I’m new to the blog world but I’m trying to get started and create my own. Do you need any html coding expertise to make your own blog? Any help would be greatly appreciated!
Thank you for all your hard work on this web page. My mother takes pleasure in getting into research and it is easy to understand why. My partner and i know all relating to the powerful form you produce precious information by means of the web blog and welcome response from some others about this area and our own girl is undoubtedly becoming educated a lot. Take pleasure in the remaining portion of the year. Your doing a really good job.
I’ve been absent for some time, but now I remember why I used to love this web site. Thanks , I¦ll try and check back more frequently. How frequently you update your site?
he blog was how do i say it… relevant, finally something that helped me. Thanks
Along with almost everything which seems to be developing throughout this specific subject matter, all your viewpoints are generally somewhat radical. Nonetheless, I beg your pardon, because I can not give credence to your entire theory, all be it exhilarating none the less. It looks to us that your remarks are actually not completely justified and in reality you are yourself not even fully convinced of your argument. In any case I did enjoy looking at it.