-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix (ApiDefinition.cs): fix the attributes used to decorate native cl…
…asses and delegates - anything with '@interface <class name> : NSObject' just needs the [BaseType] if we use [Model] on these an exception will be thrown in runtime because we will get an empty model with no code besides the exception being thrown // @interface DFUFirmware : NSObject [BaseType(typeof(NSObject), Name = "_TtC9NordicDFU11DFUFirmware")] [DisableDefaultCtor] interface DFUFirmware { ... } - anything '@protocol <class name>' is decorated like so: // @protocol DFUPeripheralSelectorDelegate [BaseType(typeof(NSObject), Name = "_TtP9NordicDFU29DFUPeripheralSelectorDelegate_")] [Protocol(Name = "_TtP9NordicDFU29DFUPeripheralSelectorDelegate_")] [Model(Name = "_TtP9NordicDFU29DFUPeripheralSelectorDelegate_")] interface DFUPeripheralSelectorDelegate { ... }
- Loading branch information
1 parent
544daeb
commit 00f60d5
Showing
1 changed file
with
27 additions
and
9 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