C# Programing introduction about the lang

AhmedElSangary1 5 views 4 slides Oct 23, 2025
Slide 1
Slide 1 of 4
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4

About This Presentation

C# Programing introduction about the lang


Slide Content

Hello World 1 using System; class HelloWorldProgram { static void Main(string[] args ){ // "printing Hello World" Console.WriteLine ("Hello, World!"); } }

Introduction to C# 2 using System; namespace HelloGeeksApp { class HelloGeeks { static void Main(string[] args ){ Console.WriteLine ("Hello Geek!"); Console.ReadKey (); } } }

Explanation Keywords using:  lets you use classes from a namespace without full names. System:  built-in namespace that has basic classes (like Console). namespace:  groups related classes together (like a folder). class:  defines a class (container for code). HelloGeeks :  name of your class. static:  method belongs to the class itself, no object needed. void:  return type meaning “no value returned”. string[] args :  stores command-line arguments (optional input). 3

Assignments 4