Programmer Question
The following code compiles in C# 4.0:
void Foo(params string[] parameters) { }
void Foo(string firstParameter, params string[] parameters) { }
How does the compiler know which overload you're calling? And if it can't, why does the code still compile?
Find the answer here
No comments:
Post a Comment