Browse Source

Prefer '#if CS60' over '#if !LEGACY_CSC'

pull/1087/head
Daniel Grunwald 8 years ago
parent
commit
b3c176e39a
  1. 12
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs
  2. 6
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/UnsafeCode.cs

12
ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExpressionTrees.cs

@ -699,14 +699,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -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 @@ -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 {

6
ICSharpCode.Decompiler.Tests/TestCases/Pretty/UnsafeCode.cs

@ -58,14 +58,14 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -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()

Loading…
Cancel
Save