public static bool IsValidUserType(Type type) { return !type.IsInterface && !type.IsPrimitive && !(type.Namespace == "System"); }