logo
Учебник_ПОА

Built-in Data Types

C# is a strongly-typed language. Before a value can be stored in a variable, the type of the variable must be specified, as in the following examples:

int a = 1;

string s = "Hello";

XmlDocument tempDocument = new XmlDocument();

Note that the type must be specified both for simple, built-in types such as an int, and for complex or custom types such as XmlDocument.