ARCed.Scintilla.ScintillaHelperBase.IsSameHelperFamily C# (CSharp) Method

IsSameHelperFamily() protected method

Determines if obj belongs to the same Scintilla and is of compatible type
protected IsSameHelperFamily ( object obj ) : bool
obj object
return bool
        protected bool IsSameHelperFamily(object obj)
        {
            var other = obj as ScintillaHelperBase;
            if (other == null)
                return false;

            if (this._scintilla == null || other._scintilla == null)
                return false;

            if (!this._scintilla.Equals(other._scintilla))
                return false;

            return GetType().IsAssignableFrom(obj.GetType());
        }