[Foundation] Remove the NSObject.[MonoTouchAssembly|MonoMacAssembly] fields in .NET. (#13681)

They're deprecated, because there's a better alternative (NSObject.PlatformAssembly).
This commit is contained in:
Rolf Bjarne Kvinge 2022-01-12 20:53:18 +01:00 коммит произвёл GitHub
Родитель 10ad084ec3
Коммит 32561da563
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -18,7 +18,7 @@ namespace Foundation {
{ {
#if !COREBUILD #if !COREBUILD
#if !XAMCORE_4_0 && !WATCH #if !NET && !WATCH
[Obsolete ("Use 'PlatformAssembly' for easier code sharing across platforms.")] [Obsolete ("Use 'PlatformAssembly' for easier code sharing across platforms.")]
public readonly static Assembly MonoTouchAssembly = typeof (NSObject).Assembly; public readonly static Assembly MonoTouchAssembly = typeof (NSObject).Assembly;
#endif #endif

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

@ -111,7 +111,7 @@ namespace Foundation {
static IntPtr un = Dlfcn.dlopen (Constants.UserNotificationsLibrary, 1); static IntPtr un = Dlfcn.dlopen (Constants.UserNotificationsLibrary, 1);
static IntPtr il = Dlfcn.dlopen (Constants.iTunesLibraryLibrary, 1); static IntPtr il = Dlfcn.dlopen (Constants.iTunesLibraryLibrary, 1);
#if !XAMCORE_4_0 #if !NET
[Obsolete ("Use PlatformAssembly for easier code sharing across platforms.")] [Obsolete ("Use PlatformAssembly for easier code sharing across platforms.")]
public static readonly Assembly MonoMacAssembly = typeof (NSObject).Assembly; public static readonly Assembly MonoMacAssembly = typeof (NSObject).Assembly;
#endif #endif