a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
265 B
C#
24 lines
265 B
C#
using System;
|
|
|
|
class OutputParam
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
int a;
|
|
Method(out a);
|
|
Console.WriteLine(a);
|
|
}
|
|
|
|
public static void Method(out int a)
|
|
{
|
|
int b;
|
|
|
|
try {
|
|
b = 5;
|
|
return;
|
|
} finally {
|
|
a = 6;
|
|
}
|
|
}
|
|
}
|