Facebook
From Gáll Benedek, 1 Year ago, written in C#.
This paste is a reply to Working with strings from Palma - go back
Embed
Viewing differences between Working with strings and Gáll Benedek
using System.Runtime.CompilerServices;

class Program
{
    static void Main()
Presentation(string name, string hobby, DateOnly birthday){
        Console.WriteLine(@"One verse from my favorite music: 
        ""Gondoltam egye-fene, elindulok haza fele
          Kezemben egy kover deckkel
          A masikban egy hideg, felig ures uveg
          Hat eleg hulye egy reggel...""");
        Console.WriteLine($"Hello, my name is {name}. I was born on {birthday,20:D}.  One of my hobbies is {hobby}.");
    }
    static void Main(string[] args)
    {
        // function calls here
Presentation("Benedek", "boxing", new DateOnly(2002, 3, 20));
    }
}