你好,可以使用如下方式判断:Type t = typeof(yourType); // yourType指的是你要判断的类型 if (t.IsPrimitive) // 为true,表示是.net的原生类型,即基础类型,注意string类型,自定义的struct,class不是原生类型 { } else { }