Hello Göran,
Well, that doesn't change that fact that you do.
No I don't. We're talking about two different things here. The word
"signature" has a meaning outside the world of the C# language definition,
and while I still haven't taken the time to dig up proof, I'm sure that an
example can be found where it includes the return type. There are no
examples there, but the short Wikipedia stub certainly agrees with me:
http://en.wikipedia.org/wiki/Method_signature
Yes, I do. The return type is not part of the signature.
Once again, C# specific. It wasn't my intention to be C# specific in my
replies.
Although your opinion of what the signature is may be interresting, it's
not relevant to what the signature really is.
I was going to react to this comment, but I decided not to.
It says that "multiple methods can have the same name so long as they have
unique signatures" and then goes on defining the term signature and also
making the clarification "The signature of a method does not include the
return type".
Do you really think that it has to be clearer than that?
Like in the same paragraph?
Right, my last post didn't make much sense in that regard. My apologies
for that. I was, and still am, trying to point out that the word
"signature" is not something that has its roots in the C# language
specification. That spec has a certain definition that it uses and it's
just as well that it explains what that definition is.
I don't think it does. It explains what a signature is when related to C#,
nothing more and nothing less. Maybe that was the precise question that
the OP was asking - fine, and I think we should be ending this discussion
anyway. But from the beginning I was making the point that there's a
difference between the definition that C# uses and a more generalized
definition one could apply.
Oliver Sturm