diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-06-10 02:59:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 02:59:12 +0300 |
commit | 4662e4eee4c2c5ae21064e2da4b334f1afef8f59 (patch) | |
tree | 3f5d4c80367a240e3010370e05713dfae186f34f | |
parent | 1c9d5697bfecd4274b08b163d570a9a21832ba4b (diff) | |
parent | 13f87340d9089cb4a1d3828a4e67c846491526d3 (diff) |
Merge pull request #3853 from dotnet/nmirror
Merge nmirror to master
-rw-r--r-- | src/System.Private.CoreLib/src/System.Private.CoreLib.csproj | 6 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/System/IO/InternalFile.Unix.cs (renamed from src/System.Private.CoreLib/src/System/IO/File.Unix.cs) | 2 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/System/IO/InternalFile.Windows.cs (renamed from src/System.Private.CoreLib/src/System/IO/File.Windows.cs) | 2 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/System/IO/InternalFile.cs (renamed from src/System.Private.CoreLib/src/System/IO/File.cs) | 2 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/System/Resources/FileBasedResourceGroveler.cs | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/System.Private.CoreLib/src/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/src/System.Private.CoreLib.csproj index ceeef06c2..1a1706b1e 100644 --- a/src/System.Private.CoreLib/src/System.Private.CoreLib.csproj +++ b/src/System.Private.CoreLib/src/System.Private.CoreLib.csproj @@ -217,9 +217,9 @@ <Compile Include="System\InvokeUtils.cs" /> <Compile Include="System\IO\BinaryReader.cs" /> <Compile Include="System\IO\BinaryWriter.cs" /> - <Compile Include="System\IO\File.cs" /> - <Compile Include="System\IO\File.Windows.cs" Condition="'$(TargetsWindows)'=='true'" /> - <Compile Include="System\IO\File.Unix.cs" Condition="'$(TargetsUnix)'=='true'" /> + <Compile Include="System\IO\InternalFile.cs" /> + <Compile Include="System\IO\InternalFile.Windows.cs" Condition="'$(TargetsWindows)'=='true'" /> + <Compile Include="System\IO\InternalFile.Unix.cs" Condition="'$(TargetsUnix)'=='true'" /> <Compile Include="System\IO\FileLoadException.CoreRT.cs" /> <Compile Include="System\IO\IOException.cs" /> <Compile Include="System\IO\MemoryStream.cs" /> diff --git a/src/System.Private.CoreLib/src/System/IO/File.Unix.cs b/src/System.Private.CoreLib/src/System/IO/InternalFile.Unix.cs index 3cf5bf836..a51c69bce 100644 --- a/src/System.Private.CoreLib/src/System/IO/File.Unix.cs +++ b/src/System.Private.CoreLib/src/System/IO/InternalFile.Unix.cs @@ -4,7 +4,7 @@ namespace System.IO { - internal static partial class File + internal static partial class InternalFile { internal static bool InternalExists(String path) { diff --git a/src/System.Private.CoreLib/src/System/IO/File.Windows.cs b/src/System.Private.CoreLib/src/System/IO/InternalFile.Windows.cs index 4bd8e9426..59dffd7d9 100644 --- a/src/System.Private.CoreLib/src/System/IO/File.Windows.cs +++ b/src/System.Private.CoreLib/src/System/IO/InternalFile.Windows.cs @@ -8,7 +8,7 @@ using System.Runtime.InteropServices; namespace System.IO { - internal static partial class File + internal static partial class InternalFile { internal static bool InternalExists(String path) { diff --git a/src/System.Private.CoreLib/src/System/IO/File.cs b/src/System.Private.CoreLib/src/System/IO/InternalFile.cs index 30513c894..726e25419 100644 --- a/src/System.Private.CoreLib/src/System/IO/File.cs +++ b/src/System.Private.CoreLib/src/System/IO/InternalFile.cs @@ -7,7 +7,7 @@ using System.Security; namespace System.IO { - internal static partial class File + internal static partial class InternalFile { // Tests if a file exists. The result is true if the file // given by the specified path exists; otherwise, the result is diff --git a/src/System.Private.CoreLib/src/System/Resources/FileBasedResourceGroveler.cs b/src/System.Private.CoreLib/src/System/Resources/FileBasedResourceGroveler.cs index 07353f4b6..bb3e3ae95 100644 --- a/src/System.Private.CoreLib/src/System/Resources/FileBasedResourceGroveler.cs +++ b/src/System.Private.CoreLib/src/System/Resources/FileBasedResourceGroveler.cs @@ -90,14 +90,14 @@ namespace System.Resources if (_mediator.ModuleDir != null) { String path = Path.Combine(_mediator.ModuleDir, fileName); - if (File.Exists(path)) + if (InternalFile.Exists(path)) { return path; } } // look in . - if (File.Exists(fileName)) + if (InternalFile.Exists(fileName)) return fileName; return null; // give up. |