System::ObjectExt::Equals methode

ObjectExt::Equals(const char_t(&), String) method

Vervanging voor C# Object.Equals aanroepen die werken voor elk type in C++. Overload voor stringliteral met stringvergelijking.

template<size_t> static bool System::ObjectExt::Equals(const char_t(&obj)[N], String another)
ParameterBeschrijving
NString literalgrootte.
ParameterTypeBeschrijving
objconst char_t(&)String letterlijke.
anotherStringString.

ReturnValue

True als strings overeenkomen, anders false.

Zie ook

ObjectExt::Equals(const double&, const double&) method

Emuleert C#-stijl zwevendekommagetallen vergelijking waarbij twee NaN’s als gelijk worden beschouwd, hoewel volgens IEC 60559:1989 NaN niet gelijk is aan enige waarde, inclusief NaN.

bool System::ObjectExt::Equals(const double &obj, const double &another)
ParameterTypeBeschrijving
objconst double&LHS zwevendekommagetal.
anotherconst double&RHS zwevendekommagetal.

ReturnValue

True als obj en another beide NaN zijn of gelijk, anders false.

Zie ook

ObjectExt::Equals(const float&, const float&) method

Emuleert C#-stijl zwevendekommagetallen vergelijking waarbij twee NaN’s als gelijk worden beschouwd, hoewel volgens IEC 60559:1989 NaN niet gelijk is aan enige waarde, inclusief NaN.

bool System::ObjectExt::Equals(const float &obj, const float &another)
ParameterTypeBeschrijving
objconst float&LHS zwevendekommagetal.
anotherconst float&RHS zwevendekommagetal.

ReturnValue

True als obj en another beide NaN zijn of gelijk, anders false.

Zie ook

ObjectExt::Equals(const T&, const T2&) method

template<typename T,typename T2> static std::enable_if<IsExceptionWrapper<T>::value, bool>::type System::ObjectExt::Equals(const T &obj, const T2 &another)

Zie ook

ObjectExt::Equals(const T&, const T2&) method

Vervanging voor C# Object.Equals aanroepen die werken voor elk type in C++. Overload voor smart pointer types.

template<typename T,typename T2> static std::enable_if<IsSmartPtr<T>::value, bool>::type System::ObjectExt::Equals(const T &obj, const T2 &another)
ParameterBeschrijving
TEerste objecttype.
T2Tweede objecttype.
ParameterTypeBeschrijving
objconst T&Eerste object.
anotherconst T2&Tweede object.

ReturnValue

True als objecten als gelijk worden beschouwd, anders false.

Zie ook

ObjectExt::Equals(const T&, const T2&) method

Vervanging voor C# Object.Equals aanroepen die werken voor elk type in C++. Overload voor scalar types.

template<typename T,typename T2> static std::enable_if<!IsSmartPtr<T>::value &&std::is_scalar<T>::value, bool>::type System::ObjectExt::Equals(const T &obj, const T2 &another)
ParameterBeschrijving
TEerste objecttype.
T2Tweede objecttype.
ParameterTypeBeschrijving
objconst T&Eerste object.
anotherconst T2&Tweede object.

ReturnValue

True als objecten als gelijk worden beschouwd, anders false.

Zie ook

ObjectExt::Equals(T, const T2&) method

Vervanging voor C# Object.Equals aanroepen die werken voor elk type in C++. Overload voor structure types.

template<typename T,typename T2> static std::enable_if<!IsExceptionWrapper<T>::value &&!IsSmartPtr<T>::value &&!std::is_scalar<T>::value, bool>::type System::ObjectExt::Equals(T obj, const T2 &another)
ParameterBeschrijving
TEerste objecttype.
T2Tweede objecttype.
ParameterTypeBeschrijving
objTEerste object.
anotherconst T2&Tweede object.

ReturnValue

True als objecten als gelijk worden beschouwd, anders false.

Zie ook