[Foundation] Fix visibility of the constructors. (#3477)

Ideally this class should be generated, but the generator doesn't support
creating these constructors as public (which is currently required to maintain
binary compatibility).
This commit is contained in:
Rolf Bjarne Kvinge 2018-02-14 17:48:16 +01:00 коммит произвёл GitHub
Родитель c377144a57
Коммит 923af0589b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 12 добавлений и 2 удалений

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

@ -50,9 +50,19 @@ namespace Foundation {
} }
public NSAutoreleasePool (NSObjectFlag t) : base (t) {} #if XAMCORE_4_0
protected
#else
public
#endif
NSAutoreleasePool (NSObjectFlag t) : base (t) {}
public NSAutoreleasePool (IntPtr handle) : base (handle) {} #if XAMCORE_4_0
protected
#else
public
#endif
NSAutoreleasePool (IntPtr handle) : base (handle) {}
#if !XAMCORE_2_0 #if !XAMCORE_2_0
protected override void Dispose (bool disposing) { protected override void Dispose (bool disposing) {