Tag: c# .net 4.0
-
C# 4.0 – Optional Parameters
I know, I know, VB has had them for ages. But I don’t care… Now C# has them too! This will greatly reduce method overloads! Check this bit of code (sorry it’s not a “real world” example) public class TestClass { public void DoSomething(string parameterOne, string parameterTwo, string parameterThree) { DoSomething(parameterOne, parameterTwo, parameterThree, null); }…