This post originated from an RSS feed registered with .NET Buzz
by SANKARSAN BOSE.
Original Post: First Look at C#4.0 - Named Arguments
Feed Title: Sankarsan's Journal
Feed URL: https://sankarsan.wordpress.com/feed/
Feed Description: Technology,Science,Books,Movies.....
In my last post I had discussed about optional arguments and default values.In continuation to that today we will take a look into the named arguments feature.Let us consider the method definition and invocation as shown below:
class Program {
static void Main(string[] args) {
Foo f = new Foo();
f.PrintName("Sankarsan", "S", "Bose");
Console.ReadLine();
}
}
[...]