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.

Greetings! I’ve been following your site for a while now and finally got the bravery to go ahead and give you a shout out from Dallas Tx! Just wanted to tell you keep up the excellent job!
Thank you for every other excellent article. Where else may anyone get that type of information in such a perfect manner of writing? I have a presentation subsequent week, and I am at the search for such information.
This is a very good tips especially to those new to blogosphere, brief and accurate information… Thanks for sharing this one. A must read article.
Helpful information. Lucky me I found your web site unintentionally, and I’m shocked why this twist of fate did not came about in advance! I bookmarked it.
I have been exploring for a bit for any high-quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this website. Reading this information So i am happy to convey that I have a very good uncanny feeling I discovered just what I needed. I most certainly will make sure to don’t forget this site and give it a look on a constant basis.
Pretty section of content. I simply stumbled upon your web site and in accession capital to say that I acquire in fact loved account your weblog posts. Anyway I’ll be subscribing to your augment and even I achievement you access consistently rapidly.
An fascinating dialogue is value comment. I believe that you must write more on this matter, it might not be a taboo topic however typically people are not sufficient to talk on such topics. To the next. Cheers
After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.
Thanks for helping out, good information. “Nobody can be exactly like me. Sometimes even I have trouble doing it.” by Tallulah Bankhead.
Very well written story. It will be helpful to anyone who employess it, including yours truly :). Keep doing what you are doing – i will definitely read more posts.
Hello, you used to write wonderful, but the last few posts have been kinda boring… I miss your super writings. Past several posts are just a little out of track! come on!
There is noticeably a bundle to know about this. I assume you made certain nice points in features also.
There are certainly a lot of details like that to take into consideration. That could be a nice level to convey up. I supply the thoughts above as general inspiration but clearly there are questions just like the one you deliver up where a very powerful factor will probably be working in honest good faith. I don?t know if finest practices have emerged round things like that, however I am positive that your job is clearly recognized as a good game. Each boys and girls really feel the affect of just a second’s pleasure, for the remainder of their lives.
Valuable info. Lucky me I found your website by accident, and I’m shocked why this accident didn’t happened earlier! I bookmarked it.
This web site is really a walk-through for all of the info you wanted about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.
Most of whatever you articulate is supprisingly appropriate and it makes me ponder the reason why I hadn’t looked at this in this light previously. This particular article really did turn the light on for me as far as this specific subject goes. However at this time there is actually one position I am not too cozy with so while I try to reconcile that with the core theme of the position, permit me observe just what the rest of the visitors have to point out.Well done.
I think this is among the most important info for me. And i am glad reading your article. But want to remark on some general things, The website style is wonderful, the articles is really nice : D. Good job, cheers
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.
Keep up the good work, I read few content on this internet site and I believe that your web blog is real interesting and contains circles of wonderful info .
Only wanna tell that this is handy, Thanks for taking your time to write this.
You made some clear points there. I did a search on the issue and found most individuals will approve with your site.
Wow, marvelous weblog format! How long have you ever been running a blog for? you made running a blog look easy. The whole look of your website is wonderful, let alone the content!
I got good info from your blog
I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.
You made several fine points there. I did a search on the subject matter and found nearly all persons will consent with your blog.
Very well written article. It will be supportive to anybody who usess it, as well as me. Keep doing what you are doing – looking forward to more posts.
Superb blog you have here but I was wanting to know if you knew of any community forums that cover the same topics discussed in this article? I’d really like to be a part of community where I can get suggestions from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Thanks a lot!
I’ve been surfing on-line greater than three hours lately, but I by no means found any interesting article like yours. It is lovely worth enough for me. In my view, if all webmasters and bloggers made just right content as you did, the net will likely be a lot more helpful than ever before.
Enjoyed examining this, very good stuff, regards.
Hiya, I’m really glad I’ve found this information. Today bloggers publish just about gossips and internet and this is really annoying. A good site with exciting content, that’s what I need. Thank you for keeping this site, I will be visiting it. Do you do newsletters? Cant find it.
Sleep Lean is a natural supplement designed to improve sleep quality and aid weight loss while you sleep.
But wanna state that this is extremely helpful, Thanks for taking your time to write this.
As a Newbie, I am always exploring online for articles that can be of assistance to me. Thank you
Hey, you used to write fantastic, but the last few posts have been kinda boring?K I miss your great writings. Past few posts are just a little bit out of track! come on!
You made some respectable points there. I appeared on the web for the issue and found most people will associate with with your website.
This is the right blog for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want…HaHa). You definitely put a new spin on a topic thats been written about for years. Great stuff, just great!
I don’t even know how I ended up here, but I thought this post was great. I do not know who you are but certainly you are going to a famous blogger if you are not already 😉 Cheers!
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 love your writing style truly enjoying this website .
You are a very smart individual!
Wow, amazing blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your website is fantastic, as well as the content!
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 got what you intend,saved to favorites, very nice web site.
I love it when people come together and share opinions, great blog, keep it 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.
This blog is definitely rather handy since I’m at the moment creating an internet floral website – although I am only starting out therefore it’s really fairly small, nothing like this site. Can link to a few of the posts here as they are quite. Thanks much. Zoey Olsen
There may be noticeably a bundle to know about this. I assume you made certain good factors in features also.
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 envy your piece of work, thanks for all the informative articles.
Howdy just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Safari. I’m not sure if this is a formatting issue or something to do with browser compatibility but I figured I’d post to let you know. The design and style look great though! Hope you get the issue fixed soon. Thanks