Double.IConvertible.ToType(Type, IFormatProvider) Метод
Определение
Описание этого члена см. в разделе ToType(Type, IFormatProvider).For a description of this member, see ToType(Type, IFormatProvider).
virtual System::Object ^ System.IConvertible.ToType(Type ^ type, IFormatProvider ^ provider) = IConvertible::ToType;
object IConvertible.ToType (Type type, IFormatProvider provider);
Параметры
- type
- Type
Тип, к которому необходимо привести это значение Double.The type to which to convert this Double value.
- provider
- IFormatProvider
Реализация интерфейса IFormatProvider, предоставляющая сведения о формате возвращаемого значения, связанные с языком и региональными параметрами.An IFormatProvider implementation that supplies culture-specific information about the format of the returned value.
Возвраты
Значение текущего экземпляра, приведенное к типу type
.The value of the current instance, converted to type
.
Реализации
Комментарии
Этот член представляет собой явную реализацию члена интерфейса.This member is an explicit interface member implementation. Он может использоваться, только если экземпляр Double приведен к типу интерфейса IConvertible.It can be used only when the Double instance is cast to an IConvertible interface. Взамен рекомендуется вызывать метод static
(Shared
в Visual Basic) Convert.ChangeType.The recommended alternative is to call the static
(Shared
in Visual Basic) Convert.ChangeType method.