blob: 6109d62b2b65845d4a1ce9648e5220236c696f57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
public class DieSubrangeType
{
public int? UpperBound
{
get;
private set;
}
public DieSubrangeType ()
{
UpperBound = 1;
}
}
class X
{
public static int Main ()
{
DieSubrangeType subrange = new DieSubrangeType ();
Console.WriteLine (subrange.UpperBound != null);
Console.WriteLine ((int) subrange.UpperBound);
return (int) subrange.UpperBound - 1;
}
}
|