C# 4.0 – Optional Parameters
New with C# 4.0 are optional parameters which have been offered in VB for some time. Optional Parameters can be used as an alternative to overloading methods. For example private string nameMethod(string firstName, string secondName = “Obama”, int age = 49) { return firstName + ” ” + secondName; } The first parameter is a [...]
Read more



9:45 pm by csharphelp