2 Introduction To C
2 Introduction To C
PREPARED BY:
PROF. ROCHELLE B. CADAYONG
What is C#?
❑ C# is a simple, modern,
general-purpose, object-oriented
programming language developed by
Microsoft within its .NET initiative led
by Anders Hejlsberg.
❑ C# programming is very much based on
C and C++ programming languages.
⚫ C# is a modern, general-purpose, object-oriented
programming language developed by Microsoft and
approved by European Computer Manufacturers
Association (ECMA) and International Standards
Organization (ISO).
⚫ C# was developed by Anders Hejlsberg and his team
during the development of .Net Framework.
⚫ C# is designed for Common Language
Infrastructure (CLI), which consists of the executable
code and runtime environment that allows use of various
high-level languages on different computer platforms and
architectures.
Reasons why C# is widely used
professional language.
❑ Boolean Conditions
❑ Automatic Garbage Collection
❑ Standard Library
❑ Properties and Events
❑ Delegates and Events Management
❑ Easy-to-use Generics
❑ Indexers
❑ Conditional Compilation
❑ Simple Multithreading
❑ Integration with Windows
The .Net Framework
⚫ C# is case sensitive.
⚫ All statements and expression must end with
a semicolon (;).
⚫ The program execution starts at the Main
method.
⚫ Unlike Java, program file name could be
different from the class name.
Compiling and Executing the Program