As you know, MSDN library says that string
, decimal
and object
are not primitive types. I'm sharing a quote about this:
The primitive types are Boolean, Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, IntPtr, UIntPtr, Char, Double, and Single.
We can test it also by typeof(typeName).IsPrimitive
property. An addition, I read discussions about string
type on stackoverflow.com too.
Nowadays I am reading a book as named CLR via C# (Fourth Edition) and this book says that (on page 112):
As you see, the writer(Jeffrey Richter) mentions that all these are primitive types.
So, can anyone clarify me, what does he mean? Why these string
, decimal
, object
, and dynamic
types are in primitives list?