Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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));
 }
Пример #3
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_equalLocations(this.m_value, (CXSourceLocation)clangObject.Value) > 0);
 }
Пример #4
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);
 }
Пример #5
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);
 }