public static bool IsSimpleType(Type type) { if (type.IsPrimitive) { return true; } if (type.IsValueType) { return true; } if (type == typeof(string)) { return true; } return false; }