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
[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git]
/
mcs
/
tests
/
test-null-operator-22.cs
blob
04115f9385e8b30157612d77a0a7f2d7ccd869dc
1
class
A
2
{
3
public
A
this
[
string
arg
] {
4
get
{
5
return new
A
();
6
}
7
set
{
8
}
9
}
10
11
public int
Count
(
string
a
)
12
{
13
return
1
;
14
}
15
}
16
17
static class
B
18
{
19
public static string
Count
(
this
A arg
)
20
{
21
return
"x"
;
22
}
23
}
24
25
class
X
26
{
27
public static void
Main
()
28
{
29
var
a
=
new
A
();
30
var
b
=
a
[
"b"
]?.
Count
();
31
System
.
Console
.
WriteLine
(
b
);
32
}
33
}