C# 4.0 optional out/ref arguments
No. A workaround is to overload with another method that doesn’t have out / ref parameters, and which just calls your current method. public bool SomeMethod(out string input) { … } // new overload public bool SomeMethod() { string temp; return SomeMethod(out temp); } If you have C# 7.0, you can simplify: // new overload … Read more