Classes | |
struct | CastType |
Functions | |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::None, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Static, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Dynamic, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::NullableBoxing, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::NullableUnboxing, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Boxing, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Unboxing, Result > | Cast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Invalid, Result > | Cast (Source) |
template<typename T > | |
bool | IsNull (T) |
template<typename T > | |
bool | IsNull (SharedPtr< T > value) |
template<typename T > | |
bool | IsNull (Nullable< T > value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::None, bool > | CanCast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Static, bool > | CanCast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Dynamic, bool > | CanCast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::NullableBoxing, bool > | CanCast (Source) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::NullableUnboxing, bool > | CanCast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Boxing, bool > | CanCast (Source) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Unboxing, bool > | CanCast (Source value) |
template<typename Source , typename Result > | |
std::enable_if_t< CastType< Source, Result >::Invalid, bool > | CanCast (Source) |
std::enable_if_t<CastType<Source, Result>::None, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | value | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Static, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | value | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Dynamic, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | value | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::NullableBoxing, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::NullableUnboxing, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | value | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Boxing, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Unboxing, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | value | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Invalid, bool> System::Collections::Generic::Details::CastRules::CanCast | ( | Source | ) |
Checks the cast possibility.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::None, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the source and the result types are the same.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Static, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the source type can be statically cast to the result type.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Dynamic, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the types aren't the same and the source type cannot be statically cast to the result type.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::NullableBoxing, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the source type is being boxed to the Nullable class instance.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::NullableUnboxing, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the source type is being unboxed from the Nullable class instance.
Source | The source type. |
Result | The result type. |
NullReferenceException | Is thrown when the source value is nullptr. |
std::enable_if_t<CastType<Source, Result>::Boxing, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the source type is being boxed to the Object class instance.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Unboxing, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | value | ) |
Casts the source type to the result type. Used when the source type is being unboxed from the Object class instance.
Source | The source type. |
Result | The result type. |
std::enable_if_t<CastType<Source, Result>::Invalid, Result> System::Collections::Generic::Details::CastRules::Cast | ( | Source | ) |
Casts the source type to the result type. Used when the casting is invalid or the conversion is explicit.
Source | The source type. |
Result | The result type. |
ThrowInvalidCastException | This exception is always thrown. |
bool System::Collections::Generic::Details::CastRules::IsNull | ( | T | ) |
Checks that the represented value is nullptr.
T | The value type. |
bool System::Collections::Generic::Details::CastRules::IsNull | ( | SharedPtr< T > | value | ) |
Checks that the represented value is nullptr.
T | The value type. |
value | The value that must be checked. |
bool System::Collections::Generic::Details::CastRules::IsNull | ( | Nullable< T > | value | ) |
Checks that the represented value is nullptr.
T | The value type. |
value | The value that must be checked. |