[DeviceCheck] Disable default ctor for DCDevice. (#2642)

It doesn't seem to be useful according to the documentation, since it appears
that the only way to get an instance is to use the static CurrentDevice
property.
This commit is contained in:
Rolf Bjarne Kvinge 2017-09-11 20:21:52 +02:00 коммит произвёл Sebastien Pouliot
Родитель fdf67c6645
Коммит a70c708a34
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -26,6 +26,7 @@ namespace XamCore.DeviceCheck {
delegate void DCDeviceGenerateTokenCompletionHandler ([NullAllowed] NSData token, [NullAllowed] NSError error);
[TV (11,0), NoWatch, NoMac, iOS (11,0)]
[DisableDefaultCtor] // From the documentation it seems the only way to create a usable instance is to use the static CurrentDevice property.
[BaseType (typeof (NSObject))]
interface DCDevice {