C# Tutorial

C# Functions

Functions

Functions group reusable logic behind a name you can call anywhere.

static string Greet(string name) => $"Hello, {name}";
Try it Yourself
Run this CSHARP example in your local environment or course sandbox.