Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }