Use is not syntax part 2 (#13338)

This commit is contained in:
xtqqczze authored and GitHub committed 2020-11-05 10:23:50 +05:00
1 parent 45ffc2c6e5
commit 03a58c4186
42 files changed
+97 -69

No files matched your search

@@ -189,7 +189,7 @@ namespace System.Management.Automation
if (pso != null)
{
object baseObject = pso.BaseObject;
if (baseObject != null && !(baseObject is PSCustomObject))
if (baseObject != null && baseObject is not PSCustomObject)
result = baseObject.ToString();
else
result = pso.ToString();