Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-08-01 13:22:44 +0300
committerGitHub <noreply@github.com>2019-08-01 13:22:44 +0300
commite4f7102bf749ab5f2566e7b3e5d1de5f6331cede (patch)
treef94717db870f89b0599a61312455b309a240fc4c
parent8e3d1356d179c219f134c9b2c075f21ab77e0b86 (diff)
FileSystem.Unix.cs: use "== null" instead of "is null" (#315)
mcs has problems with this new C# feature: "error CS1644: Feature `pattern matching' cannot be used because it is not part of the C# 7.3 language specification"
-rw-r--r--src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs b/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs
index 283c85fc93..b2007ca32d 100644
--- a/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs
+++ b/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs
@@ -25,7 +25,7 @@ namespace System.IO
Interop.ErrorInfo errorInfo;
// get the target of the symlink
string linkTarget = Interop.Sys.ReadLink(sourceFullPath);
- if (linkTarget is null)
+ if (linkTarget == null)
{
errorInfo = Interop.Sys.GetLastErrorInfo();
throw Interop.GetExceptionForIoErrno(errorInfo, sourceFullPath);