diff --git a/Model/Types/Types.cs b/Model/Types/Types.cs index 0d6934db..9aaa3634 100644 --- a/Model/Types/Types.cs +++ b/Model/Types/Types.cs @@ -255,7 +255,9 @@ public override bool Equals(object obj) this.GenericParameterCount == other.GenericParameterCount && this.ContainingNamespace == other.ContainingNamespace && this.ContainingAssembly.Equals(other.ContainingAssembly) && - this.GenericArguments.SequenceEqual(other.GenericArguments); + this.GenericArguments.SequenceEqual(other.GenericArguments) && + (this.ContainingType != null == (other.ContainingType != null)) && + (this.ContainingType == null || other.ContainingType == null || this.ContainingType.Equals(other.ContainingType)); return result; }