Converts the name of the value of the current instance to its equivalent string representation.
- provider
- An object that implements the IFormatProvider interface or a null reference. The IFormatProvider is not used in the implementation of this method.
Note: There is no IFormatProvider that corresponds to a Enum object; therefore, provider is not utilized by this method, and any IFormatProvider may be passed as a parameter.
The string representation of the name of the value of the current instance.
This method is equivalent to the version of Enum.ToString(string) that takes no arguments.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0