|
|
|
|
|
by moron4hire
1689 days ago
|
|
That was already the case. This does not change that issue. Using the example of Console.Read from the article, in C# 9, you could do `Func<int> read = Console.Read;`. Now, if someone adds an overload for the Read method to Console, that C# 9 code will break. In C# 10, that doesn't change. What changes is that we don't have to specify `Func<int>`. We can just use `var`. |
|
Method overloading (and how it interacts with other language features) is probably the single most complicated part of C# today, for good reasons.