164 Topics
Getting started with C# Language Introduction Topic
C# 6.0 Features 6.0–7.0
C# 7.0 Features 7.0
C# 7.0 is the seventh version of C#. This version contains some new features: language support for Tuples, local functions, out var declarations, digit separators, binary literals, pattern matching, throw expressions, ref return and ref local and extended expression...
Keywords All Versions
Keywords are predefined reserved identifiers that have special meanings to the compiler. They cannot be used as identifiers in your program unless they include @ as a prefix. For example, @if is a legal identifier but if is not because it is a keyword.
Extension Methods 3.0–7.0
LINQ Queries 3.0–7.0
LINQ is an acronym which stands for Language INtegrated Query. It is a concept which integrates a query language by offering a consistent model for working with data across various kinds of data sources and formats; you use the same basic coding patterns to query and...
Using Statement All Versions
Provides a convenient syntax that ensures the correct use of IDisposable objects.
Yield Keyword 2.0–7.0
When you use the yield keyword in a statement, you indicate that the method, operator, or get accessor in which it appears is an iterator. Using yield to define an iterator removes the need for an explicit extra class (the class that holds the state for an...
Operators All Versions
Enum All Versions
Reflection All Versions
Reflection is a C# language mechanism for accessing dynamic object properties on runtime. Typically, reflection is used to fetch the information about dynamic object type and object attribute values. In REST application, for example, reflection could be used to...
Verbatim Strings All Versions
Exception Handling All Versions
String.Format All Versions
The Format methods are a set of overloads in the System.String class used to create strings that combine objects into specific string representations. This information can be applied to String.Format, various WriteLine methods as well as other methods in the .NET...
Arrays All Versions
Constructors and Finalizers All Versions
Constructors are methods in a class that are invoked when an instance of that class is created. Their main responsibility is to leave the new object in a useful and consistent state. Destructors/Finalizers are methods in a class that are invoked when an instance of...
Async-Await 5.0–7.0
In C#, a method declared async won't block within a synchronous process, in case of you're using I/O based operations (e.g. web access, working with files, ...). The result of such async marked methods may be awaited via the use of the awaitkeyword.