[Foundation] Adds missing [Static] attribute in NSDistributedNotificationCenter.DefaultCenter (#4383)
Fixes the mlaunch build: Xamarin.Hosting/SimulatorApplication.cs(183,51): error CS0120: An object reference is required for the non-static field, method, or property 'NSDistributedNotificationCenter.DefaultCenter' Xamarin.Hosting/SimulatorApplication.cs(231,51): error CS0120: An object reference is required for the non-static field, method, or property 'NSDistributedNotificationCenter.DefaultCenter' Xamarin.Hosting/Services.cs(1058,51): error CS0120: An object reference is required for the non-static field, method, or property 'NSDistributedNotificationCenter.DefaultCenter'
This commit is contained in:
Родитель
c1f759ee56
Коммит
4f0bac5161
|
@ -10260,8 +10260,9 @@ namespace Foundation
|
|||
#else
|
||||
NSDistributedNotificationCenter GetDefaultCenter ();
|
||||
|
||||
[Static]
|
||||
[Advice ("Use 'GetDefaultCenter ()' for a strongly typed version.")]
|
||||
[Wrap ("GetDefaultCenter ()", IsVirtual = true)]
|
||||
[Wrap ("GetDefaultCenter ()")]
|
||||
NSObject DefaultCenter { get; }
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче