Professional Documents
Culture Documents
C# Is Modern and Easy
C# Is Modern and Easy
C# is cross platform
C# is cross platform programming language. You can build .NET applications that can be
deployed on Windows, Linux, and Mac platforms. C# apps can also be deployed in cloud and
containers.
C# is evolving
C# 8.0 is the latest version of C#. If you look at C# language history, C# is evolving faster than
any other languages. Thanks to Microsoft and a strong community support. C# was initially
designed to write Windows client applications but today, C# can do pretty much anything from
console apps, cloud app, and modern machine learning software.
The following table summarizes the C# versions with year and features.
VersionYear Features
1999- Modern, Object Oriented, Simple, Flexible, Typesafe, Managed, Garbage
1.0
2002 Collection, Cross-platform
3.0 2008 LINQ, Lamda Expression, Extension Method, Anonymous Type, Var
7.1 2017 Async main, Default literal expressions, Inferred tuple element names
Accessing fixed fields without pinning, Reassigning ref local variables, Using
7.3 2018 initializers on stackalloc arrays, Using fixed statements with any type that
supports a pattern, Using additional generic constraints
C# Strings
In any programming language, to represent a value, we need a data type. The Char data type
represents a character in .NET. In .NET, the text is stored as a sequential read-only collection of
Char data types. There is no null-terminating character at the end of a C# string; therefore a C#
string can contain any number of embedded null characters ('\0').