C# Introduction

What is C# ?

  • C# is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET
 Several C# features help create robust and durable applications

  • Garbage collection automatically reclaims memory occupied by unreachable unused objects
  • Nullable types : guard against variables that don't refer to allocated objects
  • Exception handling : provides a structured and extensible approach to error detection and  recovery
  • Lambda expressions : support functional programming techniques. 
  • Language Integrated Query (LINQ) : syntax creates a common pattern for working with data from any source
  • Asynchronous operations : provides syntax for building distributed systems
  • C# has a unified type system. All C# types, including primitive types such as int and double, inherit from a single root object type.
  • C# supports both user-defined reference types and value types
  • C# supports generic methods and types, which provide increased type safety and performance
  • C# provides iterators, which enable implementers of collection classes to define custom  behaviors for client code
  • C# emphasizes versioning to ensure programs and libraries can evolve over time in a compatible manner

C# code sample

using System; 
class Hello
{
    static void Main()
    {
        Console.WriteLine("Hello, World");
    }
}

How C# code interacts with .NET framework ? 






2 Comments

Previous Post Next Post