Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: cc
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (31 sloc) 1.013 kB
using System;
using System.Runtime.CompilerServices;
[assembly: ScriptAssembly("test")]
namespace MemberTests {
public delegate void Callback();
public abstract class Test {
public extern Test();
public Test(string name) {
}
public static extern void DoSomething();
public static void DoSomething(object o) {
}
public extern void Invoke(Callback successCallback);
public extern void Invoke(Callback successCallback, Callback errorCallback);
public void Invoke(Callback successCallback, Callback errorCallback, object context) {
}
}
public class App {
public App() {
Test.DoSomething();
Test.DoSomething(null);
Test t1 = new Test();
Test t2 = new Test("test");
Callback cb1 = null;
Callback cb2 = null;
t1.Invoke(cb1);
t1.Invoke(cb1, cb2);
t2.Invoke(cb1, cb2, t1);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.