Created
February 10, 2017 11:16
-
-
Save mandel-macaque/5d1e296961b47df403431931175eb357 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Foundation; | |
using ObjCRuntime; | |
namespace MissingUsingInTrampoline | |
{ | |
delegate ITestProto [] SomeBlock (); | |
interface ITestProto { } | |
[Protocol, Model, BaseType (typeof (NSObject))] | |
interface TestProto | |
{ | |
} | |
[Model, BaseType (typeof (NSObject))] | |
interface TestCase | |
{ | |
[Export ("testCall:")] | |
// This fails | |
void TestCall (SomeBlock block); | |
// This works - at least compiles. Maybe does the right thing at runtime? | |
//void TestCall (Func<TestProto[]> block); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment