Sometimes, when I call the ToString
method, it returns the fully qualified name of the runtime type of the object that received the call.
Right.
But for some types, such as System.Int32
, ToString
, the recipient value is converted to a string.
Right.
Does the structure of the System.Int32
method ToString
?
Yes.
To use other types, ToString
methods return the full name of the type do not override ToString
?
This is probably true, yes. Of course, they can override the method and use the override method in the same way as the base class method, but that would be a little pointless.
So, in these cases, calling ToString
just calls the implementation of System.Object
ToString
, which returns the full name?
Right.
You seem to have a clear understanding of how this works. My only correction would be that System.Int32
is a structure, not a class.
source share