|
|
|
|
@ -1,4 +1,7 @@
@@ -1,4 +1,7 @@
|
|
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
|
using System; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
|
{ |
|
|
|
|
internal class VariableNamingWithoutSymbols |
|
|
|
|
{ |
|
|
|
|
@ -25,5 +28,54 @@
@@ -25,5 +28,54 @@
|
|
|
|
|
string text2 = c.Text; |
|
|
|
|
#endif
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static IDisposable GetData() |
|
|
|
|
{ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void UseData(IDisposable data) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static IEnumerable<int> GetItems() |
|
|
|
|
{ |
|
|
|
|
throw null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static byte[] GetMemory() |
|
|
|
|
{ |
|
|
|
|
throw null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void Test(int item) |
|
|
|
|
{ |
|
|
|
|
foreach (int item2 in GetItems()) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine(item2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void Test(IDisposable data) |
|
|
|
|
{ |
|
|
|
|
#if CS80
|
|
|
|
|
using IDisposable data2 = GetData(); |
|
|
|
|
UseData(data2); |
|
|
|
|
#else
|
|
|
|
|
using (IDisposable data2 = GetData()) |
|
|
|
|
{ |
|
|
|
|
UseData(data2); |
|
|
|
|
} |
|
|
|
|
#endif
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private unsafe static void Test(byte[] memory) |
|
|
|
|
{ |
|
|
|
|
fixed (byte* memory2 = GetMemory()) |
|
|
|
|
{ |
|
|
|
|
Console.WriteLine(*memory2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|