コード例 #1
0
 public bool Equals(ClangFieldInfoBase other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(RoughCxTypeComparer.CompareEquality(Type, other.Type) &&
            string.Equals(Name, other.Name, StringComparison.Ordinal));
 }
コード例 #2
0
 public bool Equals(ClangEnumInfoBase other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(RoughCxTypeComparer.CompareEquality(UnderlyingType, other.UnderlyingType) &&
            string.Equals(Name, other.Name, StringComparison.Ordinal) &&
            Definitions.SequenceEqual(other.Definitions));
 }
コード例 #3
0
 public bool Equals(ClangFunctionInfoBase other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(RoughCxTypeComparer.CompareEquality(ReturnType, other.ReturnType) &&
            string.Equals(Name, other.Name, StringComparison.Ordinal) &&
            Parameters.SequenceEqual(other.Parameters));
 }