I have just started learning C# and would have one question that I cannot find answer on. Maybe I am just searching something slightly different.
Also on MSDN I found following:
C# is a strongly typed language; therefore every variable and object must have a declared type.
Data Types Overview.
I am also reading a book for it and it says:
This variable will store numeric value (integer value) which is actually particular type of data. Therefore you will need to use data type determined for storing such a data and that is called an int.
Also if I understand well so data type of any variable is just saying how the data in this variable will look like? If its int, then it will contain specific range of numbers. Right?
A data type actually says two things about your data:
int, then it will contain a number from a specific range.intnumbers together by saying1 + 2. Or you can append a text tostring(this looks similar:"a" + "b"). Or you can search for a fragment of a text in another text ("hello".IndexOf("ll")will return 2).These two things are called the implementation and the interface of a data type, respectively.