According to this a string (or String) is a reference type.
Yet given:
Type t = typeof(string);
then
if (t.IsBy
You want to check if it is a value type.
typeof(object).IsValueType :- false typeof(int).IsValueType :- true