using System;
public class Program
{
public static void Main()
string par = "test";
try
throw new ArgumentOutOfRangeException(nameof(par), par, "The value of {0} was '{1}'.");
}
catch(Exception ex)
Console.WriteLine(ex.Message);