[mono] Implement Environment.GetFolderPath on iOS (#34022)
authorEgor Bogatov <egorbo@gmail.com>
Tue, 31 Mar 2020 14:23:20 +0000 (17:23 +0300)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 14:23:20 +0000 (10:23 -0400)
commit372bf426f1e10c2ccab3446cc0043edc86bcad01
tree16b8a6259bb16067baa7f2746c86180fc49ac99c
parentbe469ad6b432fe10156cfbbc13ddc67b78a91024
[mono] Implement Environment.GetFolderPath on iOS (#34022)

* Implement Environment.GetFolderPath on iOS

* Address feedback

* Move GetFolderPathCore to Environment.Unix.GetFolderPathCore.cs

* Fix build issue

* Address feedback

* cache all special directories

* Fix build issue

* remove a whitespace

* Fix UserProfile issue

* undo changes in GetEnvironmentVariableCore

* Update Environment.Unix.Mono.cs

* Extract to InternalGetEnvironmentVariable

* Fix build issue

* Return emtpy string if underlying native function returns null

* Add nullability
src/libraries/Common/src/Interop/OSX/System.Native/Interop.SearchPath.cs [new file with mode: 0644]
src/libraries/Native/Unix/System.Native/CMakeLists.txt
src/libraries/Native/Unix/System.Native/pal_searchpath.h [new file with mode: 0644]
src/libraries/Native/Unix/System.Native/pal_searchpath.m [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Environment.Unix.GetFolderPathCore.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System/Environment.Unix.cs
src/mono/netcore/System.Private.CoreLib/System.Private.CoreLib.csproj
src/mono/netcore/System.Private.CoreLib/src/System/Environment.Unix.Mono.cs
src/mono/netcore/System.Private.CoreLib/src/System/Environment.iOS.cs [new file with mode: 0644]