[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:
Alex Soto 2018-07-03 12:47:05 -05:00 коммит произвёл GitHub
Родитель c1f759ee56
Коммит 4f0bac5161
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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