repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
[mcs.git]
/
tests
/
gtest-430.cs
blob
ccbb5621d3dafba6e22430f38b44ea94de2f947d
1
using
System
;
2
3
public class
Tmp
4
{
5
public int
stuff
;
6
}
7
public class
Driver
8
{
9
Tmp tmp
;
10
11
public int
?
Prop
{
12
get
{ return tmp != null ? tmp.stuff : (int?)null; }
13
}
14
15
static int
Main
()
16
{
17
int
?
r
=
new
Driver
().
Prop
;
18
Console
.
WriteLine
(
r
);
19
return
r
.
HasValue
?
1
:
0
;
20
}
21
}