You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.243
Former-commit-id: ff34202749e8df2aa83f2578b16260b444f50987
This commit is contained in:
parent
804b15604f
commit
3cc9601fd9
28
mcs/tests/dtest-065.cs
Normal file
28
mcs/tests/dtest-065.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Dynamic;
|
||||
|
||||
public class TestConvert : DynamicObject
|
||||
{
|
||||
public override bool TryConvert (ConvertBinder binder, out object result)
|
||||
{
|
||||
result = null;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public class Test : DynamicObject
|
||||
{
|
||||
public override bool TryInvokeMember (InvokeMemberBinder binder, object [] args, out object result)
|
||||
{
|
||||
result = new TestConvert ();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public class XX
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
dynamic t = new Test ();
|
||||
string result = t.SomeMethod ();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user