/// <summary> /// The Equals /// </summary> /// <param name="obj">The obj<see cref="object"/></param> /// <returns>The <see cref="bool"/></returns> public override bool Equals(object obj) { if (obj is ClangObject) { ClangObject clangObject = obj as ClangObject; return(this.EqualsCore(clangObject)); } return(false); }
/// <summary> /// The EqualsCore /// </summary> /// <param name="clangObject">The clangObject<see cref="ClangObject"/></param> /// <returns>The <see cref="bool"/></returns> protected virtual bool EqualsCore(ClangObject clangObject) { return(this.Value.Equals(clangObject.Value)); }
/// <summary> /// The EqualsCore /// </summary> /// <param name="clangObject">The clangObject<see cref="ClangObject"/></param> /// <returns>The <see cref="bool"/></returns> protected override bool EqualsCore(ClangObject clangObject) { return(clang.clang_equalLocations(this.m_value, (CXSourceLocation)clangObject.Value) > 0); }
/// <summary> /// The EqualsCore /// </summary> /// <param name="clangObject">The clangObject<see cref="ClangObject"/></param> /// <returns>The <see cref="bool"/></returns> protected override bool EqualsCore(ClangObject clangObject) { return(clang.clang_equalTypes(this.m_value, (CXType)clangObject.Value) > 0); }
/// <summary> /// The EqualsCore /// </summary> /// <param name="clangObject">The clangObject<see cref="ClangObject"/></param> /// <returns>The <see cref="bool"/></returns> protected override bool EqualsCore(ClangObject clangObject) { return(clang.clang_File_isEqual(this.m_value, (IntPtr)clangObject.Value) > 0); }