```csharp
public static bool IsFundamental(this Type type)
{
return type.IsPrimitive || type.IsEnum || type.Equals(typeof(string)) || type.Equals(typeof(DateTime));
}
C# 反射判断是否是基础类型
最新推荐文章于 2023-05-02 21:21:00 发布
```csharp
public static bool IsFundamental(this Type type)
{
return type.IsPrimitive || type.IsEnum || type.Equals(typeof(string)) || type.Equals(typeof(DateTime));
}