[Solved] Is Primitive types Exist in C#? [closed]


Please ask only one question per question.

Is Int32 a = new Int32() equal to int a ?

No. It is the equivalent of int a = 0;

If not: How its possible to write a.ToString() ?

Ints have a method called ToString. You called it.

Do we have primitive types in C#?

The C# specification uses the word “primitive” once, and it is not at all clear what it means in the context of the specification. The concept of “primitive type” is not an important one in the study of C#.

According to this Question Int32 and int are pretty much the same thing. Shorthand preferred for Readability and Style.

Correct.

So: According to java, Primitive types are the most basic data types available.

Java is not C#.

6

solved Is Primitive types Exist in C#? [closed]