3. • Was initially created specifically for use with the .NET
platform.
• Use with the .NET Framework, which allows you
access to a number of libraries that are specially
intended for use with Windows.
• Designed to be simple, type-safe, object-oriented,
and high-performance.
• C# application consist of human-readable source
code, written in a text editor.
The C# Language
4. Statements
A complete program instructions is called a statement and each
statement ends with a semicolon(;).
int myVariable; // a statement
myVariable =23; //another statement
Int anotherVariable = myVariable; //yet another statement
5. Variable and Assignment
A C# variable is roughly the same as the variables you remember
from your ninth grade algebra class: it’s a placeholder for a value.
To put it more technically, a variable is an instance of an intrinsic
type (such as int) that can hold a value:
int myVariable;
myVariable =23; //assign 23 to myVariable
6. Types
C# is a strongly typed language. That means that every object you
create or use in a C# program must have a specific type.
7. Strings
It is nearly impossible to write a C# program without creating
strings, and we wouldn’t want to deprive you of them here.
Strings myString;
8. Whitespace
In the C# language, space, tabs, and newlines are considered to be
whitespace(so named because you see only the white of the
underlying “page”
myVariable =5;
OR
myVariable = 5 ;