Change RootDirectory properties to span (dotnet/corefx#27134)
authorJeremy Kuhne <jeremy.kuhne@microsoft.com>
Fri, 16 Feb 2018 00:41:51 +0000 (16:41 -0800)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2018 00:41:51 +0000 (16:41 -0800)
commitb6811353d39a4cbecc5a83556f9c6634868a5cd9
treef945cd68789e990f6bd1b1a773aca716992fc852
parent13064be7ebec6e498ed45ddf729bd31f1313cc3c
Change RootDirectory properties to span (dotnet/corefx#27134)

Exposing string restricts the ability to change internals without introducing unnecessary allocations.

Commit migrated from https://github.com/dotnet/corefx/commit/3ac69e86e0c8e654a9802bf593fdc98ea69a4fb8
src/libraries/System.IO.FileSystem/ref/System.IO.FileSystem.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEntry.Unix.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEntry.Windows.cs
src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Windows.cs
src/libraries/System.IO.FileSystem/src/System/IO/PathHelpers.cs