using System;
public class Program
{
public static void Main()
int testValue = 0;
try {
Test(out testValue);
}
catch
Console.WriteLine("value: " + testValue);
private static void Test(out int value)
value = 500;
throw new InvalidOperationException("test");