Enum.IConvertible.ToString(IFormatProvider) Method

Definition

Caution

The provider argument is not used. Please use ToString().

This method overload is obsolete; use ToString() instead.

C#
[System.Obsolete("The provider argument is not used. Please use ToString().")]
string IConvertible.ToString(IFormatProvider provider);

Parameters

provider
IFormatProvider

An IFormatProvider implementation that supplies culture-specific information about the format of the returned value. This argument is not used.

Returns

The string representation of the value of this instance.

Implements

Attributes

Applies to

Product Versions (Obsolete)
.NET (Core 1.0, Core 1.1)
.NET Standard (1.3, 1.4, 1.5, 1.6)
UWP (10.0)