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-04-06 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0668.cs
blob
1eb0211fdded5ae7a48c5a5f613ae48786660be6
1
// cs0668.cs: Two indexers have different names; the IndexerName attribute must be used with the same name on every indexer within a type
2
// Line:
3
4
using
System
.
Runtime
.
CompilerServices
;
5
class
A
{
6
[
IndexerName
(
"Blah"
)]
7
int this
[
int
a
] {
8
get
{ return 1; }
9
}
10
11
[
IndexerName
(
"Foo"
)]
12
int this
[
string
b
] {
13
get
{ return 2; }
14
}
15
16
public static int
Main
()
17
{
18
int
a
=
5
;
19
20
if
(!(
a
is object
))
21
return
3
;
22
23
return
0
;
24
}
25
}
26
27
28