ARCed.Scintilla.Annotation.Equals C# (CSharp) Method

Equals() public method

Overridden. Determines whether the specified object is equal to the current object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
return bool
        public override bool Equals(object obj)
        {
            if (obj is Annotation)
            {
                // If another annotation has the same Scintilla
                // control and line index--it is the same.
                var a = (Annotation)obj;
                if (a._scintilla == this._scintilla && a._lineIndex == this._lineIndex)
                    return true;
            }

            return false;
        }

Same methods

Annotation::Equals ( Annotation a ) : bool