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
update readme (#21797)
[mono-project.git]
/
mcs
/
tests
/
gtest-exmethod-18.cs
blob
d4cc4a5bed1f5f71eba43f1a504003680bed9e3e
1
using
System
;
2
3
class
Foo
{
4
public bool
IsBar
{
5
get
{ return false; }
6
}
7
}
8
9
static class
FooExt
{
10
11
public static bool
IsBar
(
this
Foo f
)
12
{
13
return
f
.
IsBar
;
14
}
15
}
16
17
class
Repro
{
18
19
public static void
Main
()
20
{
21
var
f
=
new
Foo
();
22
Console
.
WriteLine
(
f
.
IsBar
());
23
}
24
}