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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
gcs1501-2.cs
blob
c3691940efb1fa9c334f8b881560d374d36bb038
1
// CS1501: No overload for method `Select' takes `1' arguments
2
// Line: 17
3
4
5
using
System
;
6
7
class
TestA
8
{
9
public string value
;
10
11
public
TestA
(
string value
)
12
{
13
this
.
value
=
value
;
14
}
15
16
public string
Select
(
int
i
,
Func
<
TestA
,
TestA
>
f
)
17
{
18
return value
;
19
}
20
}
21
22
public class
M
23
{
24
static void
Main
()
25
{
26
var
v
=
new
TestA
(
"Oh yes"
);
27
string
foo
=
from
a
in
v
select
a
;
28
}
29
}