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.

Hi, i believe that i noticed you visited my site thus i came to “return the prefer”.I’m trying to in finding issues to improve my web site!I assume its good enough to make use of a few of your concepts!!
Your style is so unique compared to many other people. Thank you for publishing when you have the opportunity,Guess I will just make this bookmarked.2
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.
hi!,I like your writing so much! share we communicate more about your post on AOL? I need a specialist on this area to solve my problem. May be that’s you! Looking forward to see you.
I cling on to listening to the news broadcast lecture about getting boundless online grant applications so I have been looking around for the finest site to get one. Could you tell me please, where could i get some?
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.
Howdy! Do you know if they make any plugins to assist with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results. If you know of any please share. Thank you!
I want to show appreciation to you just for rescuing me from this type of problem. Because of looking through the search engines and meeting strategies which were not pleasant, I figured my entire life was over. Being alive without the answers to the difficulties you’ve fixed all through the website is a critical case, as well as ones which could have adversely damaged my entire career if I had not come across the blog. Your primary competence and kindness in dealing with every item was vital. I am not sure what I would have done if I hadn’t come upon such a step like this. I am able to at this time look ahead to my future. Thanks a lot so much for your skilled and sensible guide. I won’t be reluctant to propose your blog to any individual who needs and wants counselling on this problem.
I’ve been exploring for a little bit for any high-quality articles or weblog posts on this sort of house . Exploring in Yahoo I ultimately stumbled upon this website. Studying this information So i’m satisfied to exhibit that I have a very just right uncanny feeling I found out exactly what I needed. I so much unquestionably will make certain to do not disregard this web site and give it a look on a constant basis.
I got what you mean , regards for putting up.Woh I am happy to find this website through google. “Don’t be afraid of opposition. Remember, a kite rises against not with the wind.” by Hamilton Mabie.
I like the valuable info you provide in your articles. I’ll bookmark your blog and check again here regularly. I’m quite certain I’ll learn many new stuff right here! Good luck for the next!
There is evidently a lot to identify about this. I suppose you made certain nice points in features also.
Wow! Thank you! I continually needed to write on my blog something like that. Can I include a portion of your post to my website?
Usually I do not learn post on blogs, however I would like to say that this write-up very pressured me to check out and do it! Your writing style has been amazed me. Thanks, quite nice article.
Hmm it seems like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to everything. Do you have any points for first-time blog writers? I’d really appreciate it.
As I website possessor I believe the content material here is rattling fantastic , appreciate it for your efforts. You should keep it up forever! Best of luck.
magnificent points altogether, you simply gained a new reader. What would you suggest about your post that you made a few days ago? Any positive?
you will have an amazing blog right here! would you prefer to make some invite posts on my weblog?
Its fantastic as your other articles : D, appreciate it for putting up.
Thanks for sharing excellent informations. Your web site is very cool. I’m impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found just the information I already searched all over the place and simply could not come across. What a great web-site.
I really like your writing style, excellent information, appreciate it for posting : D.
Nice post. I was checking continuously this blog and I am impressed! Very helpful information particularly the last part 🙂 I care for such information much. I was seeking this certain info for a very long time. Thank you and good luck.
I truly enjoy looking at on this web site, it has good blog posts. “The living is a species of the dead and not a very attractive one.” by Friedrich Wilhelm Nietzsche.
I think this is one of the such a lot vital information for me. And i’m happy reading your article. However want to remark on few normal things, The site style is wonderful, the articles is really excellent : D. Good job, cheers
Very interesting information!Perfect just what I was searching for! “We are shaped and fashioned by what we love.” by Johann von Goethe.
I have to show my respect for your kindness supporting those who must have assistance with this important theme. Your special commitment to getting the solution around had been extraordinarily powerful and has surely made girls much like me to arrive at their endeavors. Your entire insightful hints and tips entails this much to me and substantially more to my office workers. Best wishes; from everyone of us.
After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.
Pretty nice post. I just stumbled upon your weblog and wanted to say that I’ve truly enjoyed surfing around your blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again very soon!
There may be noticeably a bundle to know about this. I assume you made certain good factors in features also.
Some truly interesting points you have written.Assisted me a lot, just what I was looking for : D.
I’d have to examine with you here. Which is not one thing I usually do! I take pleasure in reading a post that may make folks think. Additionally, thanks for permitting me to comment!
I appreciate, cause I found exactly what I was looking for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye
I wanted to post you a little remark to finally thank you so much the moment again for your personal splendid techniques you’ve documented on this website. It has been so pretty open-handed with people like you to grant without restraint precisely what a lot of folks could possibly have marketed for an ebook to generate some cash for themselves, notably since you could have done it if you wanted. The ideas additionally acted as a great way to comprehend other people have similar interest like my personal own to know whole lot more in regard to this issue. I think there are many more enjoyable periods ahead for those who discover your blog post.
You really make it appear so easy along with your presentation but I find this topic to be really something that I think I might by no means understand. It sort of feels too complicated and very extensive for me. I’m having a look ahead in your next post, I will attempt to get the grasp of it!
Thanks for this grand post, I am glad I noticed this website on yahoo.
I’m not that much of a online reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back later. Many thanks
Generally I do not read post on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thanks, very nice article.
Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!
Hello there, I discovered your website by way of Google even as searching for a similar topic, your web site came up, it appears good. I’ve bookmarked it in my google bookmarks.
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.
I love your blog.. very nice colors & theme. Did you create this website yourself? Plz reply back as I’m looking to create my own blog and would like to know wheere u got this from. thanks
It’s really a great and useful piece of info. I am glad that you shared this helpful info with us. Please keep us informed like this. Thanks for sharing.
Greetings! Very helpful advice on this article! It is the little changes that make the biggest changes. Thanks a lot for sharing!
There is noticeably a bundle to know about this. I assume you made certain nice points in features also.
Do you have a spam problem on this blog; I also am a blogger, and I was wanting to know your situation; we have created some nice procedures and we are looking to trade methods with others, why not shoot me an e-mail if interested.
I enjoy you because of every one of your labor on this blog. Kate loves working on investigation and it’s really easy to see why. Most of us hear all concerning the dynamic way you convey very helpful guides via the blog and in addition cause response from other people on that article while our favorite daughter is now understanding so much. Take pleasure in the rest of the new year. Your performing a powerful job.
Nice blog right here! Also your site loads up fast! What host are you using? Can I am getting your affiliate link in your host? I wish my web site loaded up as quickly as yours lol
Magnificent beat ! I would like to apprentice while you amend your web site, how can i subscribe for a blog site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept
Someone essentially help to make seriously articles I would state. This is the first time I frequented your website page and thus far? I amazed with the research you made to make this particular publish amazing. Excellent job!
Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!