Opc.Ua.NumericRange.Equals C# (CSharp) Method

Equals() public method

Returns true if the objects are equal.
Returns true if the objects are equal.
public Equals ( object obj ) : bool
obj object The object to test against this
return bool
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return true;
            }

            NumericRange? range = obj as NumericRange?;

            if (range == null)
            {
                return false;
            }

            return (range.Value.m_begin == m_begin) &&( range.Value.m_end == m_end);  
        }