CSharp Language Guide
CSharp Language Guide
1. Introduction to C#
used to build Windows applications, web applications, and games using the .NET framework.
- int (integer)
- string (text)
- bool (true/false)
3. Operators
- Arithmetic (+, -, *, /)
4. Conditional Statements
Example:
Console.WriteLine("Adult");
} else {
Console.WriteLine("Minor");
5. Loops
Complete C# Language Guide
- for loop
- while loop
- do-while loop
6. Arrays
7. Methods
Example:
void Greet() {
Console.WriteLine("Hello");
Example:
class Car {
}
Complete C# Language Guide
try {
// code
} catch (Exception e) {
Console.WriteLine(e.Message);
File.WriteAllText("file.txt", "Hello");
- Interfaces
- Delegates
- Events
- LINQ