c# 4.0 new feature: named and optional arguments (cherupally.blogspot.com)

submitted by kcherupakcherupa(255) 3 months, 4 days ago

This post explains the usage of c# 4.0's new feature "named and optional arguments". This feature is mostly useful when we have methods defined with large number of parameters. It is hard to remember the list of parameters in order. So by using named arguments we can pass the arguments in any order. And also many times it is possible that, we don't want to pass all arguments but use default values. This requirement is replaced by "optional parameters" feature.

add a comment | category: | Views: 23

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:

No comments so far

information Login or create an account to comment on this story