Provides a set of useful methods that check some basic properties of different types and functions.
More...
|
template<typename T > |
static std::enable_if< std::is_arithmetic< T >::value||std::is_enum< T >::value, bool >::type | IsNull (T obj) |
| Checks if specific value is null. Version for arithmetic and enum types.
|
|
template<typename T > |
static std::enable_if<!std::is_arithmetic< T >::value &&!std::is_enum< T >::value, bool >::type | IsNull (const T &obj) |
| Checks if specific value is null. Version for non-arithmetic and non-enum value types.
|
|
template<typename T > |
static bool | IsNull (const SharedPtr< T > &obj) |
| Checks if specific value is null. Version for non-arithmetic value types.
|
|
template<typename K , typename V > |
static bool | IsNull (System::Collections::Generic::KeyValuePair< K, V > &kvp) |
| Checks if specific value is null. Version for key-value pairs.
|
|
static bool | IsEmpty (const System::String &str) |
| Checks if string is empty.
|
|
template<typename T > |
static bool | IsEmpty (const SharedPtr< T > &collection) |
| Checks if collection is empty.
|
|
template<typename T > |
static bool | IsNullOrEmpty (const SharedPtr< T > &collection) |
| Checks if collection is null or empty.
|
|
static bool | IsNullOrEmpty (const System::String &str) |
| Checks if string is null or empty.
|
|
static bool | IsNull (const System::String &str) |
| Checks if string is null.
|
|
static bool | AssertThrows (const std::function< void()> &func) |
| Checks if function throws exception of any type.
|
|
Provides a set of useful methods that check some basic properties of different types and functions.