Overload Resolution and Optional Arguments in C# 4
- by Dale McCoy
I am working with some code that has seven overloads of a function TraceWrite:
void TraceWrite(string Application, LogLevelENUM LogLevel, string Message, string Data = "");
void TraceWrite(string Application, LogLevelENUM LogLevel, string Message, bool LogToFileOnly, string Data = "");
void TraceWrite(string Application, LogLevelENUM LogLevel,…