4 ms·
I think the most popular answer is sub-optimal. The problem example given is not an issue if you simply use method overloads. eg just add a new method to the
by rjempson 14y ago
I think the most popular answer is sub-optimal. The problem example given is not an issue if you simply use method overloads. eg just add a new method to the original interface and you break nothing :
interface ILogSink {
Log(DateTime timestamp, string message);
Log(DateTime timestamp, string message, CultureInfo culture);
}