Showing content from https://www.geeksforgeeks.org/c-sharp/csharp-programming-language/ below:
C# Tutorial - GeeksforGeeks
C# Tutorial
Last Updated : 16 Dec, 2024
C# (pronounced "C-sharp") is a modern, versatile, object-oriented programming language developed by Microsoft in 2000 that runs on the .NET Framework. Whether you're creating Windows applications, diving into Unity game development, or working on enterprise solutions, C# is one of the top choices for developers worldwide.
- C# originates from the C programming family and shares similarities with other widely-used languages like C++ and Java.
- Mainly used to develop the desktop apps, windows apps, games(with unity engine), mobile apps and web services etc.
- C# is the primary language for developing games using the Unity engine.
- With .NET Core, C# applications can run on Windows, macOS, and Linux.
- The latest version, C# 13 was released in November 2024 alongside .NET 9.
Hello World Program C#
// C# Hello World Program
using System;
class HelloWorldProgram {
// Main Method
static void Main(string[] args)
{
// "printing Hello World"
Console.WriteLine("Hello, World!");
}
}
This C# tutorial covers everything from beginners to advanced level. We’ll start with the basics like setting up your environment, C# syntax, and writing "Hello World" program, data types, and loops etc. After that we will start with advanced topics like object-oriented programming, delegates, tuples, indexers, collections, multithreading, and LINQ etc.
.NET Framework Overview
Introduction
Basics
Control Structures
Arrays & Strings
OOPS Concepts
Delegates
Tuple
- What is Tuple?
- Tuple Class
- Tuple<T1> Class
- Tuple<T1,T2> Class
- Tuple<T1,T2,T3> Class
- Tuple<T1,T2,T3,T4> Class
- Tuple<T1,T2,T3,T4,T5> Class
- Tuple<T1,T2,T3,T4,T5,T6> Class
- Tuple<T1,T2,T3,T4,T5,T6,T7> Class
- Tuple<T1,T2,T3,T4,T5,T6,T7,TRest> Class
ValueTuple
- What is ValueTuple?
- ValueTuple Struct
- ValueTuple <T1> Struct
- ValueTuple <T1,T2> Struct
- ValueTuple <T1,T2,T3> Struct
- ValueTuple <T1,T2,T3,T4> Struct
- ValueTuple <T1,T2,T3,T4,T5> Struct
- ValueTuple <T1,T2,T3,T4,T5,T6> Struct
- ValueTuple <T1,T2,T3,T4,T5,T6,T7> Struct
- ValueTuple <T1,T2,T3,T4,T5,T6,T7,TRest> Struct
Indexers & Properties
Multithreading
Exception Handling
Collections & Generics
Collections Namespace
Generic Namespace
System Namespace
Specialized Namespace
C# 8.0
Windows Forms
C# Features
- Simple: C# is a user-friendly language that offers a structured approach to problem-solving. it provides a wide range of library functions and data types to work.
- Modern Programming Language: C# programming is a popular and powerful language that is for creating scalable, interoperable, and robust applications.
- Object Oriented: C# is an object-oriented programming language, which makes development and maintenance easier. In contrast, with procedure-oriented programming languages, managing code becomes difficult as project size grows.
- Type Safe: The code is type safe can only access memory locations that it has permission to execute. This feature significantly enhances program security.
- Interoperability: The interoperability process allows C# programs to perform all the tasks that a native C++ application.
- Scalable and Updateable: C# is a programming language that is scalable and can be updated automatically. To update our application, we remove the old files and replace them with new ones.
- Component Oriented: It is widely used as a software development methodology to create applications that are more strong and can easily scale.
- Structured Programming Language: C# is a structured programming language that allows us to divide programs into parts using functions, making it easy to understand and modify.
- Fast Speed: The compilation and execution time of C# language is fast.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4