-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重构并扩展 ValidHelper 类的方法 重构了 `ToStringArray` 方法为通用的 `ToArray<T>` 方法,并添加了 `converter` 参数用于类型转换。删除了原有的 `ToStringArray` 方法,改为调用新的 `ToArray<T>` 方法。新增了多个类型转换方法,如 `ToInt32Array`、`ToInt64Array`、`ToDoubleArray` 等,这些方法都调用了 `ToArray<T>` 方法。此外,新增了 `ToEnum<T>` 和 `ToObject<T>` 方法,用于将对象转换为枚举类型和指定的引用类型。
- Loading branch information
Showing
2 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters