Just curious if there is some reason to use Convert.ToString(string value)
It does nothing, the original string is returned.
See: Convert.ToString Method (String)
Returns the specified string instance; no actual conversion is performed.
This is how it is implemented
public static String ToString(String value) {
Contract.Ensures(Contract.Result<string>() == value); // We were always skipping the null check here.
return value;
}
Just to add one more thing, System.Convert has methods to covert each type to itself like Convert.ToInt32 Method (Int32) and in all cases these methods do nothing, the actual value is returned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With