Feeds:
Posts
Comments

Posts Tagged ‘primitive type’

Some important properties of those known “primitive” types …. ( c# )

  Value Type
typeof(int)
Nullable Type
typeof(int?)
String
typeof(string)
IsClass     True
IsByRef      
IsGenericType   True  
IsPrimitive True    
IsValueType True True  
BaseType ValueType ValueType object

Generally many people sort “string” to the “primitive type” group and think it a “unusual” class…
While here we can see that from a strict , exact .NET definition vision “string” is by no means primitive , though it possesses most popular usage and is granted a “keyword” privilege like int , double in .NET world.

Advertisements

Read Full Post »