public override bool Equals(object obj) { if (!base.Equals(obj)) { return(false); } return(((CustomType)obj).userType.GetType() == userType.GetType()); }