From b3c176e39a3dadf8f3ed183a11c81d591df42129 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sun, 4 Mar 2018 17:12:20 +0100 Subject: [PATCH] Prefer '#if CS60' over '#if !LEGACY_CSC' --- .../TestCases/Pretty/ExpressionTrees.cs | 12 ++++++------ .../TestCases/Pretty/UnsafeCode.cs | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs index 9c21284d3..96b586056 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs @@ -699,14 +699,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty public int Field = 3; -#if LEGACY_CSC +#if CS60 + public static int StaticReadonlyProperty => 0; +#else public static int StaticReadonlyProperty { get { return 0; } } -#else - public static int StaticReadonlyProperty => 0; #endif public static int StaticProperty { @@ -714,14 +714,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty set; } -#if LEGACY_CSC +#if CS60 + public int ReadonlyProperty => 0; +#else public int ReadonlyProperty { get { return 0; } } -#else - public int ReadonlyProperty => 0; #endif public int Property { diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/UnsafeCode.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/UnsafeCode.cs index 187c95cbd..d51084c1f 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/UnsafeCode.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/UnsafeCode.cs @@ -58,14 +58,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty private UnsafeDelegate unsafeDelegate; private static UnsafeDelegate staticUnsafeDelegate; -#if LEGACY_CSC +#if CS60 + public unsafe int* NullPointer => null; +#else public unsafe int* NullPointer { get { return null; } } -#else - public unsafe int* NullPointer => null; #endif unsafe static UnsafeCode()