Session#1 csharp MTCS
-
Upload
ahmad-ehab -
Category
Education
-
view
116 -
download
0
description
Transcript of Session#1 csharp MTCS
![Page 1: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/1.jpg)
![Page 2: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/2.jpg)
Csharp:
![Page 3: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/3.jpg)
About C#:
• C# is a modern, general-purpose, object-oriented programming language developed by Microsoft and approved by Ecma and 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 to be used on different computer platforms and architectures.
![Page 4: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/4.jpg)
C# professional language:
The following reasons make C# a widely used professional language:
Modern, general-purpose programming language
Object oriented.
Component oriented.
Easy to learn.
Structured language.
It produces efficient programs.
It can be compiled on a variety of computer platforms.
Part of .Net Framework.
![Page 5: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/5.jpg)
Strong Programming Features of C#
Following is the list of few important features:
Boolean Conditions
Automatic Garbage Collection
Standard Library
Assembly Versioning
Properties and Events
Delegates and Events Management
Easy-to-use Generics
Indexers
Conditional Compilation
Simple Multithreading
LINQ and Lambda Expressions
Integration with Windows
![Page 6: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/6.jpg)
C# program basically consists of the following parts:
• Namespace declaration
• A class
• Class methods
• Class attributes
• A Main method
• Statements & Expressions
• Comments
![Page 7: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/7.jpg)
Data Types :Value Types :
![Page 8: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/8.jpg)
![Page 9: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/9.jpg)
Hello World EX:Using system;
Namespace HelloWorldApplication
{
Class HelloWorld
{
static void Main(string[] args)
{
/* Print Hello World in separated line *\
Console.WriteLine("hello world");
Console.ReadyKey();
}
}
}
![Page 10: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/10.jpg)
![Page 13: Session#1 csharp MTCS](https://reader033.fdocuments.us/reader033/viewer/2022052622/559440611a28abd85b8b4864/html5/thumbnails/13.jpg)