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
2009-12-12 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
tests
/
gtest-anontype-01.cs
blob
baae8c9817bdd25577a463ad2a8ade22d0b51634
1
2
// Tests anonymous types
3
using
System
;
4
using
System
.
Collections
;
5
6
public class
Test
7
{
8
static int
Main
()
9
{
10
var
v
=
new
{ Foo = "Bar", Baz = 42 }
;
11
12
if
(
v
.
Foo
!=
"Bar"
)
13
return
1
;
14
if
(
v
.
Baz
!=
42
)
15
return
2
;
16
17
return
0
;
18
}
19
}