-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[generator] Copy [Obsolete] attributes on smart enums. Fixes #46292 (#…
…1104) Covers attributes on the type itself and on its members. Reference: * https://bugzilla.xamarin.com/show_bug.cgi?id=46292
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using MonoTouch.Foundation; | ||
|
||
namespace BindingTests { | ||
[Obsolete ("Type level obsolete must also be copied")] | ||
public enum HMAccessoryCategoryType : int { | ||
[Field ("HMAccessoryCategoryTypeGarageDoorOpener")] | ||
GarageDoorOpener = 0, | ||
|
||
[Obsolete ("Use GarageDoorOpener")] | ||
DoorOpener = GarageDoorOpener, | ||
} | ||
} |