While reading about "partial methods" in the C# documentation, I found the following sentence:
Parameter and type parameter names do not have to be the same in the implementing declaration as in the defining one.
Can someone explains me with an example what this sentence means?
That means that the following code, note the parameter names, successfully compiles:
Just as it is the case with interfaces:
It's parameter order that matters. You can choose whatever valid name you want in the implementation.
For the "type parameter names" part, that part specifically is about generics (
TversusV), where again the order matters, not the name: