public static void Main()
var str = "Początkowa wartość";
Console.WriteLine("Po robocie: {0:s}", str);
var strRef = "Początkowa wartość";
Console.WriteLine("Po robocie (ref): {0:s}", strRef);
Console.WriteLine("Po robocie (out): {0:s}", strOut);
static void ModifyRef(ref string val)
val += " i co dalej? ...";
static void Modify(string val)
val += " i co dalej? ...";
static void ModifyOut(out string val)