6
shouts

C# 4.0 New feature - Named Parameter

posted by http://jalpesh.blogspot.com/http://jalpesh.blogspot.com/ 124 days, 20 hours, 51 minutes ago
Saturday, November 14, 2009 6:06:02 PM GMT

C# 4.0 has one new cool features which is the named parameter. Suppose you have so many parameter in function and when you call them its hard to remember the sequence of the code now with the named parameter you can have name of the parameter with value like Parameter:value and one another cool feature of the name parameter is the you don't need to pass the parameter in exact sequence. Let see the following example

Code Snippet

protectedvoid Page_Load(object sender, EventArgs e)        {        ...

category: ASP.NET | clicked: 3 | | source: jalpesh.blogspot.com | show counter code