forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bgen] Fix detecting NSObject types and generating block code with ty…
…pes that aren't NSObjects. (xamarin#21181)
- Loading branch information
1 parent
ec75380
commit 39459a2
Showing
5 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
|
||
using CoreFoundation; | ||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
namespace NS { | ||
public partial class DispatchData2 : NativeObject { } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
|
||
using CoreFoundation; | ||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
namespace NS { | ||
|
||
[Partial] | ||
interface DispatchData2 { | ||
} | ||
|
||
delegate void DispatchB (DispatchData2 data); | ||
delegate void DispatchA (DispatchData2 data, [BlockCallback] DispatchB dispatch); | ||
|
||
[BaseType (typeof (NSObject))] | ||
interface INativeObjectInBlocks { | ||
[Export ("someProperty")] | ||
DispatchA SomeProperty { get; set; } | ||
} | ||
} |