Metode System::StaticCast

System::StaticCast(const TFrom&) method

Melakukan static cast pada objek non-pointer.

template<typename TTo,typename TFrom> std::enable_if<!std::is_same<TFrom, System::String>::value &&!IsExceptionWrapper<TFrom>::value &&!IsSmartPtr<TFrom>::value &&!std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom &obj)
ParameterDeskripsi
TToTipe target.
TFromTipe sumber.
ParameterTipeDeskripsi
objconst TFrom&Objek sumber.

ReturnValue

Hasil cast jika cast diizinkan.

Deprecated

Dibiarkan untuk kompatibilitas mundur. Gunakan ExplicitCast sebagai gantinya.

Lihat Juga

System::StaticCast(const TFrom&) method

Melakukan static cast pada objek Exception.

template<typename TTo,typename TFrom> std::enable_if<IsExceptionWrapper<TFrom>::value &&IsExceptionWrapper<TTo>::value &&(std::is_convertible<TTo, TFrom>::value||std::is_base_of<TTo, TFrom>::value), TTo>::type System::StaticCast(const TFrom &obj)
ParameterDeskripsi
TToTipe Exception target.
TFromTipe Exception sumber.
ParameterTipeDeskripsi
objconst TFrom&Pointer sumber.

ReturnValue

Hasil cast jika cast diizinkan.

Deprecated

Dibiarkan untuk kompatibilitas mundur. Gunakan ExplicitCast sebagai gantinya.

Lihat Juga

System::StaticCast(const TFrom *) method

Spesialisasi untuk tipe aritmetika.

template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(const TFrom *value)

Lihat Juga

System::StaticCast(SmartPtr<TFrom> const&) method

Melakukan static cast pada objek SmartPtr.

template<typename TTo,typename TFrom> std::enable_if<!IsExceptionWrapper<TTo>::value, typenameCastResult<TTo>::type>::type System::StaticCast(SmartPtr<TFrom> const &obj)
ParameterDeskripsi
TToTipe pointee target.
TFromTipe pointee sumber.
ParameterTipeDeskripsi
objSmartPtr<TFrom> const&Pointer sumber.

ReturnValue

Hasil cast jika cast diizinkan.

Deprecated

Dibiarkan untuk kompatibilitas mundur. Gunakan ExplicitCast sebagai gantinya.

Lihat Juga

System::StaticCast(SmartPtr<TFrom>) method

Melakukan static cast pada Objek ke objek Exception.

template<typename TTo,typename TFrom> std::enable_if<std::is_same<System::Object, TFrom>::value &&IsExceptionWrapper<TTo>::value, TTo>::type System::StaticCast(SmartPtr<TFrom> obj) noexcept
ParameterDeskripsi
TToTipe Exception target.
TFromTipe Object.
ParameterTipeDeskripsi
objSmartPtr<TFrom>Pointer sumber.

ReturnValue

Hasil cast jika cast diizinkan.

Deprecated

Dibiarkan untuk kompatibilitas mundur. Gunakan ExplicitCast sebagai gantinya.

Lihat Juga

System::StaticCast(std::nullptr_t) method

Melakukan static cast pada objek null.

template<typename TTo> CastResult<TTo>::type System::StaticCast(std::nullptr_t)
ParameterDeskripsi
TToTipe pointee target.

ReturnValue

nullptr.

Deprecated

Dibiarkan untuk kompatibilitas mundur. Gunakan ExplicitCast sebagai gantinya.

Lihat Juga

System::StaticCast(TFrom) method

Spesialisasi untuk tipe aritmetika.

template<typename TTo,typename TFrom> std::enable_if<std::is_arithmetic<TFrom>::value, TTo>::type System::StaticCast(TFrom value)

Lihat Juga

System::StaticCast(TTo) method

Proses cast dari String ke String.

template<typename TTo> std::enable_if<std::is_same<TTo, System::String>::value, TTo>::type System::StaticCast(TTo value)

Lihat Juga

System::StaticCast(WeakPtr<TFrom> const&) method

Melakukan static cast pada objek WeakPtr.

template<typename TTo,typename TFrom> CastResult<TTo>::type System::StaticCast(WeakPtr<TFrom> const &obj)
ParameterDeskripsi
TToTipe pointee target.
TFromTipe pointee sumber.
ParameterTipeDeskripsi
objWeakPtr<TFrom> const&Pointer sumber.

ReturnValue

Hasil cast jika cast diizinkan.

Deprecated

Dibiarkan untuk kompatibilitas mundur. Gunakan ExplicitCast sebagai gantinya.

Lihat Juga