Decimal.IConvertible.ToBoolean(IFormatProvider) Método
Definição
Para obter uma descrição desse membro, confira ToBoolean(IFormatProvider).For a description of this member, see ToBoolean(IFormatProvider).
virtual bool System.IConvertible.ToBoolean(IFormatProvider ^ provider) = IConvertible::ToBoolean;
bool IConvertible.ToBoolean (IFormatProvider provider);
abstract member System.IConvertible.ToBoolean : IFormatProvider -> bool
override this.System.IConvertible.ToBoolean : IFormatProvider -> bool
Function ToBoolean (provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean
Parâmetros
- provider
- IFormatProvider
Este parâmetro é ignorado.This parameter is ignored.
Retornos
true se o valor da instância atual não é zero; caso contrário, false.true if the value of the current instance is not zero; otherwise, false.
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 Decimal é convertida em uma interface de IConvertible.It can be used only when the Decimal instance is cast to an IConvertible interface. A alternativa recomendada é chamar o Convert.ToBoolean(Decimal) método.The recommended alternative is to call the Convert.ToBoolean(Decimal) method.