public override bool Equals(object obj) { if (obj == null) return false; var Item = obj as TestClass; return (Item.A == A && Item.B == B && Item.C == C); }