Metodo System::ObjectExt::Is

ObjectExt::Is(const char16_t *) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per letterale stringa.

template<class T> static bool System::ObjectExt::Is(const char16_t *str)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
strconst char16_t *String letterale.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const ExceptionWrapper<U>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi wrapper di eccezione.

template<class T,class U> static std::enable_if<IsExceptionWrapper<T>::value, bool>::type System::ObjectExt::Is(const ExceptionWrapper<U> &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst ExceptionWrapper<U>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const Nullable<U>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per il tipo Nullable.

template<class T,class U> static bool System::ObjectExt::Is(const Nullable<U> &value)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
valueconst Nullable<U>&tipo Nullable.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const Object&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi valore.

template<class T> static std::enable_if<std::is_convertible<T, Object>::value, bool>::type System::ObjectExt::Is(const Object &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst Object&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const Object&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi non convertibili.

template<class T> static std::enable_if<!std::is_convertible<T, Object>::value, bool>::type System::ObjectExt::Is(const Object &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst Object&Object per testare l’operatore ‘is’.

ReturnValue

Restituisce sempre false poiché i tipi non sono convertibili.

Vedi anche

ObjectExt::Is(const SmartPtr<Object>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per tipi nullable.

template<class T> static std::enable_if<IsNullable<T>::value, bool>::type System::ObjectExt::Is(const SmartPtr<Object> &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst SmartPtr<Object>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const SmartPtr<Object>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per tipi incapsulabili con l’operatore == definito.

template<class T> static std::enable_if<System::IsBoxable<T>::value &&!IsNullable<T>::value &&!std::is_enum<T>::value &&detail::has_operator_equal<T>::value, bool>::type System::ObjectExt::Is(const SmartPtr<Object> &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst SmartPtr<Object>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const SmartPtr<Object>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per tipi incapsulabili senza l’operatore == definito.

template<class T> static std::enable_if<System::IsBoxable<T>::value &&!IsNullable<T>::value &&!std::is_enum<T>::value &&!detail::has_operator_equal<T>::value, bool>::type System::ObjectExt::Is(const SmartPtr<Object> &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst SmartPtr<Object>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const SmartPtr<U>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi puntatore.

template<class T,class U> static std::enable_if<IsSmartPtr<T>::value, bool>::type System::ObjectExt::Is(const SmartPtr<U> &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst SmartPtr<U>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const SmartPtr<U>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per tipi enum.

template<class T,class U> static std::enable_if<std::is_enum<T>::value, bool>::type System::ObjectExt::Is(const SmartPtr<U> &obj)
ParametroDescrizione
TTipo di destinazione.
UTipo dell’oggetto puntato.
ParametroTipoDescrizione
objconst SmartPtr<U>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const SmartPtr<V>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per tipi valore incapsulati in interfacce.

template<class T,class V> static std::enable_if<System::IsBoxable<T>::value &&!IsNullable<T>::value &&!std::is_enum<T>::value &&!std::is_same<V, Object>::value, bool>::type System::ObjectExt::Is(const SmartPtr<V> &obj)
ParametroDescrizione
TTipo di destinazione.
VTipo dell’oggetto puntato.
ParametroTipoDescrizione
objconst SmartPtr<V>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const T&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi boxabili (valore) che sono esattamente questi.

template<class T> static std::enable_if<System::IsBoxable<T>::value, bool>::type System::ObjectExt::Is(const T &obj)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
objconst T&Object per testare l’operatore ‘is’. Ignorato.

ReturnValue

Sempre vero

Vedi anche

ObjectExt::Is(const U&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi puntatore ottimizzati per le classi ‘final’.

template<class T,class U> static std::enable_if<std::is_convertible<T, Object>::value &&std::is_final<T>::value &&!System::IsBoxable<T>::value &&System::IsSmartPtr<U>::value, bool>::type System::ObjectExt::Is(const U &obj)
ParametroDescrizione
TTipo di destinazione.
UTipo testato.
ParametroTipoDescrizione
objconst U&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const U&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per i tipi puntatore.

template<class T,class U> static std::enable_if<std::is_convertible<T, Object>::value &&!std::is_final<T>::value &&!System::IsBoxable<T>::value &&System::IsSmartPtr<U>::value, bool>::type System::ObjectExt::Is(const U &obj)
ParametroDescrizione
TTipo di destinazione.
UTipo testato.
ParametroTipoDescrizione
objconst U&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(const WeakPtr<U>&) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per tipi enum rispetto a puntatori deboli.

template<class T,class U> static std::enable_if<std::is_enum<T>::value, bool>::type System::ObjectExt::Is(const WeakPtr<U> &obj)
ParametroDescrizione
TTipo di destinazione.
UTipo dell’oggetto puntato.
ParametroTipoDescrizione
objconst WeakPtr<U>&Object per testare l’operatore ‘is’.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche

ObjectExt::Is(int32_t) method

Implementa la traduzione dell’operatore ‘is’. Specializzazione per letterale intero.

template<class T> static bool System::ObjectExt::Is(int32_t value)
ParametroDescrizione
TTipo di destinazione.
ParametroTipoDescrizione
valoreint32_tletterale intero.

ReturnValue

Vero se ‘is’ restituisce true, false altrimenti.

Vedi anche