```csharp
public static bool IsFundamental(this Type type)
{
return type.IsPrimitive || type.IsEnum || type.Equals(typeof(string)) || type.Equals(typeof(DateTime));
}
C# 反射判断是否是基础类型
猜你喜欢
转载自blog.csdn.net/Helloantoherday/article/details/121337081
今日推荐
周排行