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
add comment
[mcs.git]
/
tests
/
gtest-exmethod-18.cs
blob
0a47011a81defc699db0f4dac9430b620bcd1f74
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
static void
Main
()
20
{
21
var
f
=
new
Foo
();
22
Console
.
WriteLine
(
f
.
IsBar
());
23
}
24
}