I am wondering why the following is marked as an error with no suitable method found to override
in VS2010 (.NET 4):
public override string ToString(int foo=0) {
// some stuff
}
I've found this which seems somewhat similar (at least also surprising behavior with optional parameters), but I don't understand why this method does not override ToString()
.
Now I'm obviously aware how to easily fix this problem by overloading ToString, so I'm not interested in solutions for the problem, but in the rationale behind this limitation.