What is special about .NET primitive types? -


i reading primitive types on msdn, came across this answer on stackoverflow question primitive types. 2 seem differ ever slightly.

according msdn documentation, states few of advantages of primitive types:

  • primitive types permit literal values.
  • primitive types can declared constant values.
  • operands of expression made of primitive types can compiled constant expression.

however, part differs stackoverflow states system.string, example, not primitive type. makes sense: typeof(system.string).isprimitive yields false. and, stackoverflow answer points cli spec: ecma 335 (link broken) source of reference. leads me believe msdn documentation not entirely accurate. if case, makes primitive types special?

the msdn link points ancient page visual basic.net 2003. in current specification string removed list of primitive types. visual basic language reference doesn't mention string primitive type, vb.net 2003.

i suspect documentation error in 2003


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -