Double.IConvertible.ToType(Type, IFormatProvider) Método
Definição
Para obter uma descrição desse membro, confira 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);
abstract member System.IConvertible.ToType : Type * IFormatProvider -> obj
override this.System.IConvertible.ToType : Type * IFormatProvider -> obj
Function ToType (type As Type, provider As IFormatProvider) As Object Implements IConvertible.ToType
Parâmetros
- type
- Type
O tipo para o qual esse valor de Double será convertido.The type to which to convert this Double value.
- provider
- IFormatProvider
Uma implementação de IFormatProvider que fornece informações específicas da cultura sobre o formato do valor retornado.An IFormatProvider implementation that supplies culture-specific information about the format of the returned value.
Retornos
O valor da instância atual, convertido em type.The value of the current instance, converted to type.
Implementações
Comentários
Este membro é uma implementação do membro de interface explícita.This member is an explicit interface member implementation. Ele só pode ser usado quando a instância de Double é convertida em uma interface de IConvertible.It can be used only when the Double instance is cast to an IConvertible interface. A alternativa recomendada é chamar o método static (Shared no Visual Basic) Convert.ChangeType.The recommended alternative is to call the static (Shared in Visual Basic) Convert.ChangeType method.