System.TypeExtensionMethods.IsPrimitive C# (CSharp) Method

IsPrimitive() public static method

public static IsPrimitive ( this type ) : bool
type this
return bool
        public static bool IsPrimitive(this Type type)
        {
            return type.GetTypeInfo().IsPrimitive;
        }