Skip to content

Instantly share code, notes, and snippets.

@mandel-macaque
Created February 10, 2017 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandel-macaque/5d1e296961b47df403431931175eb357 to your computer and use it in GitHub Desktop.
Save mandel-macaque/5d1e296961b47df403431931175eb357 to your computer and use it in GitHub Desktop.
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