An Overview of the C# Programming Language
C# is a high-level general-purpose, imperative programming language. C# programs run on a virtual machine known as the Common Language Runtime (CLR), most notably the .NET platform.
C# is statically and strongly typed and lexically scoped and it supports functional, generic, object-oriented, and component-oriented programming styles.
Currently, the latest version of the language is C# 10.0, which is supported by .NET version 6.0.
C# Main Features
- C# is a statically and strongly typed compiled language.
- C# programs can be compiled into either CLR bytecode or native code.
- C# supports object-oriented programming styles through classes, structs, records, and interface.
- C# supports inheritance-based polymorphism.
- C# methods can be defined with in, inout, and out reference parameters in addition to the regular pass-by-value parameters.
- C# supports functional programming styles, e.g., through LINQ and pattern matching, etc.
- C# 9.0 and later now supports top-level statements for the main program.
- C# 9.0 and later now supports non-nullable and nullable references.
- Error handling in C# is generally done using exceptions or using other conventions.
- The primary language of ASP.NET is C#.
Hello World in C# (C# 10 or later)
Console.WriteLine("Hello World!");
More on Hello World in C#
If you are interested in finding out more about the C# programming language, then here's an explanation of the Hello World program in C# in a little more detail:
- Hello World (C#): C# Hello World - A quick explanation
C C++ Clojure Crystal D Dart Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript