projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
gtest-anontype-01.cs
1
// Compiler options: -langversion:linq
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
}