/CSharp-Examples

This repository is meant to be a set of examples of all the features of C#

Primary LanguageC#Mozilla Public License 2.0MPL-2.0

CSharp-Examples

This repository is designed for users who are starting to approach or to review features (all through examples) regarding C#.

The examples are of codes are written on csx file (dotnet-script).

How do you need to run scripts?

therefore in order to run the examples in C# you need to have installed .NET and the dotnet-script nuget package installed. After installing dotnet you can install dotnet-script from the command line with the following command: dotnet tool install --global dotnet-script --version 1.0.1

How do you do to run a script?

You can run a command line script like in the following examples below:

  • dotnet-script script.csx
  • dotnet-script ./folder/script.csx