, , , (string)object object.ToString(), .
, , typecasting .ToString(). ToString():
public virtual string ToString()
{
return this.GetType().ToString();
}
, GetType(), ToString() .
If we are not sure about the type object, then the answer will be ToString()instead (string).
If you want to see the performance benchmark (string) vs .ToString (), go to: (string) vs .ToString ()
source
share