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’m not sure why but this weblog is loading incredibly slow for me. Is anyone else having this issue or is it a issue on my end? I’ll check back later and see if the problem still exists.
บาคาร่า
WONDERFUL Post.thanks for share..extra wait .. …
You made some nice points there. I did a search on the issue and found a good number of persons will consent with your blog.
Hi my family member! I wish to say that this post is awesome, great written and include almost all significant infos. I would like to peer more posts like this .
This is a fantastic simplification for anyone dealing with variadic methods; cutting out the manual array conversion between collections will save a lot of boilerplate. I’m particularly excited to see how this affects the pattern matching in more complex scenarios, so I look forward to the deeper dives in the upcoming parts of the series.
I’ve read several good stuff here. Certainly worth bookmarking for revisiting. I wonder how a lot attempt you put to create such a fantastic informative website.
It’s onerous to seek out educated folks on this matter, however you sound like you already know what you’re speaking about! Thanks
I was examining some of your blog posts on this internet site and I think this web site is rattling instructive! Continue putting up.
Rattling wonderful visual appeal on this site, I’d rate it 10 10.
Thank you for sharing excellent informations. Your website is very cool. I am impressed by the details that you have on this web site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found simply the information I already searched all over the place and just couldn’t come across. What a perfect web-site.
I enjoy you because of all your work on this site. Kate enjoys managing investigation and it’s really obvious why. All of us learn all regarding the lively mode you create very useful tips and tricks on this web blog and as well as cause participation from other individuals on this area of interest and my girl has always been understanding a lot. Take advantage of the remaining portion of the year. You have been doing a good job.
You are a very smart individual!
Howdy! I could have sworn I’ve been to this blog before but after checking through some of the post I realized it’s new to me. Nonetheless, I’m definitely glad I found it and I’ll be bookmarking and checking back frequently!
Awsome website! I am loving it!! Will come back again. I am taking your feeds also
Great remarkable issues here. I’m very satisfied to peer your post. Thank you so much and i am looking ahead to contact you. Will you please drop me a mail?
Really informative and great anatomical structure of subject matter, now that’s user friendly (:.
My brother suggested I might like this web site. He was entirely right. This post truly made my day. You can not imagine simply how much time I had spent for this info! Thanks!
Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?
Very instructive and great anatomical structure of content, now that’s user genial (:.
Simply want to say your article is as amazing. The clearness in your post is simply cool and i can assume you’re an expert on this subject. Well with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the enjoyable work.
Very great info can be found on blog. “I don’t know what will be used in the next world war, but the 4th will be fought with stones.” by Albert Einstein.
I’m extremely impressed with your writing skills and also with the
structure to your blog. Is this a paid subject matter or did you modify it your self?
Either way keep up the nice high quality writing, it is uncommon to
peer a nice blog like this one these days..
I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get got an shakiness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this increase.
I wanted to draft you this bit of word to help say thanks a lot yet again for those gorgeous thoughts you’ve featured in this article. This has been generous of you to convey easily all that a number of us would’ve supplied for an e book to generate some profit for their own end, chiefly considering that you could have tried it in case you decided. These things also worked to be the fantastic way to realize that most people have the identical keenness just as my very own to know many more on the topic of this matter. I know there are numerous more enjoyable times ahead for many who take a look at your blog post.
Some times its a pain in the ass to read what blog owners wrote but this internet site is really user friendly! .
Hi, i feel that i saw you visited my website thus i came to “go back the desire”.I’m trying to in finding issues to enhance my site!I assume its good enough to make use of a few of your ideas!!
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
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
Some truly great blog posts on this internet site, appreciate it for contribution.
This preview feature for using any collection with ‘params’ sounds like a huge time-saver, eliminating the awkward array conversions I’ve often had to fiddle with in the past. I appreciate you highlighting the Intelliense light bulb trick, as that’s a small detail that can make a big difference in smoothing out the preview experience.
I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an shakiness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this increase.
very good submit, i definitely love this web site, keep on it
It’s really a great and useful piece of information. I am glad that you just shared this useful information with us. Please keep us informed like this. Thanks for sharing.
It’s really a nice and useful piece of information. I’m happy that you shared this useful information with us. Please keep us informed like this. Thanks for sharing.
It’s perfect time to make some plans for the longer term and it is time to be happy. I’ve learn this submit and if I may just I wish to counsel you few attention-grabbing things or suggestions. Maybe you could write next articles relating to this article. I want to learn more things approximately it!
I was examining some of your articles on this site and I believe this internet site is really instructive! Continue posting.
Thanks for this post, I am a big big fan of this site would like to proceed updated.
Great post. I am facing a couple of these problems.
I was very pleased to seek out this net-site.I wished to thanks to your time for this glorious learn!! I definitely having fun with every little bit of it and I have you bookmarked to take a look at new stuff you blog post.
Rattling informative and fantastic body structure of subject matter, now that’s user pleasant (:.
Nice blog right here! Also your web site lots up very fast! What web host are you using? Can I get your affiliate link in your host? I desire my web site loaded up as quickly as yours lol
I really appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thx again
What’s Going down i’m new to this, I stumbled upon this I’ve found It absolutely helpful and it has aided me out loads. I hope to give a contribution & help other customers like its helped me. Great job.
It helped me see things differently, and it was pretty straightforward. this is worth saving.
hey, i came here from another page and stayed. this cleared up a few things for me, and that made a difference. might be useful again later.
Im not positive the place you’re getting your info, however great topic. I needs to spend some time finding out more or understanding more. Thanks for excellent info I was looking for this information for my mission.
It’s remarkable in favor of me to have a web site, which is beneficial in support of my knowledge. thanks admin
在线购买大麻用于XXX成人色情视频
Hello just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Internet explorer. I’m not sure if this is a formatting issue or something to do with web browser compatibility but I figured I’d post to let you know. The design and style look great though! Hope you get the issue solved soon. Many thanks
Some genuinely interesting details you have written.Aided me a lot, just what I was looking for :D.
Hi there to every , as I am really eager of reading this webpage’s post to be updated regularly. It carries fastidious data.
Starburst