linux-packaging-mono/mcs/tests/gtest-exmethod-18.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
274 B
C#

using System;
class Foo {
public bool IsBar {
get { return false; }
}
}
static class FooExt {
public static bool IsBar (this Foo f)
{
return f.IsBar;
}
}
class Repro {
public static void Main ()
{
var f = new Foo ();
Console.WriteLine (f.IsBar ());
}
}