repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
gtest-anontype-01.cs
blob
93fd29bf8aaec785cadd10d949354f4dc2fc3185
1
2
// Tests anonymous types
3
using
System
;
4
using
System
.
Collections
;
5
6
public class
Test
7
{
8
public 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
}