System::Nullable::operator== method

Nullable::operator==(const Nullable<T1>&) const method

Determines if the value represented by the current object is equal to the value represented by the specified Nullable object.

template<typename T1> bool System::Nullable<T>::operator==(const Nullable<T1> &other) const
ParameterDescription
T1The underlying type of the Nullable object to compare with
ParameterTypeDescription
otherconst Nullable<T1>&A constant reference to the Nullable object to compare with

ReturnValue

True if the value represented by the current object is equal to the value represented by the specified Nullable object, otherwise - false

See Also

Nullable::operator==(const T1&) const method

Determines if the value represented by the current object is equal to the specified value.

template<typename T1> std::enable_if<!IsNullable<T1>::value, bool>::type System::Nullable<T>::operator==(const T1 &other) const
ParameterDescription
T1The type of the value to compare with
ParameterTypeDescription
otherconst T1&A constant reference to the value to compare with

ReturnValue

True if the value represented by the current object is equal to the specified value, otherwise - false

See Also

Nullable::operator==(std::nullptr_t) const method

Determines if the value represented by the current object is null.

bool System::Nullable<T>::operator==(std::nullptr_t) const

ReturnValue

True if the value represented by the current object is null, otherwise - false

See Also