C sharp - features of C#
1. Object-Oriented
C# follows object-oriented programming principles such as encapsulation, inheritance, polymorphism, and abstraction, making code modular, reusable, and easier to maintain.
2. Type-Safe
C# ensures that variables are used only according to their defined data types, reducing errors during compilation and runtime.
3. Automatic Garbage Collection
C# automatically manages memory by cleaning up unused objects in the background, reducing the risk of memory leaks.
4. Rich Standard Library
C# offers a vast collection of built-in classes and functions through the .NET framework, enabling developers to perform common tasks easily.
5. Language Integrated Query (LINQ)
C# supports querying data from various sources (like collections, databases, XML) using a consistent and readable syntax.
6. Cross-Platform Development
Using .NET Core and .NET 5+, C# enables building and running applications on multiple operating systems, including Windows, Linux, and macOS.