|
|
@ -252,6 +252,9 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if MCS
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size = 1)] |
|
|
|
|
|
|
|
#endif
|
|
|
|
public struct DataItem |
|
|
|
public struct DataItem |
|
|
|
{ |
|
|
|
{ |
|
|
|
public int Property { |
|
|
|
public int Property { |
|
|
@ -457,12 +460,21 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
|
|
|
|
|
|
|
|
public void ForEachBreakWhenFound(string name, ref StringComparison output) |
|
|
|
public void ForEachBreakWhenFound(string name, ref StringComparison output) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
#if MCS
|
|
|
|
|
|
|
|
foreach (int value in Enum.GetValues(typeof(StringComparison))) { |
|
|
|
|
|
|
|
if (((StringComparison)value).ToString() == name) { |
|
|
|
|
|
|
|
output = (StringComparison)value; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#else
|
|
|
|
foreach (StringComparison value in Enum.GetValues(typeof(StringComparison))) { |
|
|
|
foreach (StringComparison value in Enum.GetValues(typeof(StringComparison))) { |
|
|
|
if (value.ToString() == name) { |
|
|
|
if (value.ToString() == name) { |
|
|
|
output = value; |
|
|
|
output = value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void ForEachOverListOfStruct(List<DataItem> items, int value) |
|
|
|
public void ForEachOverListOfStruct(List<DataItem> items, int value) |
|
|
@ -496,6 +508,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !MCS
|
|
|
|
public void ForEachOverMultiDimArray(int[,] items) |
|
|
|
public void ForEachOverMultiDimArray(int[,] items) |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach (int value in items) { |
|
|
|
foreach (int value in items) { |
|
|
@ -526,6 +539,8 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
public void ForOverArray(string[] array) |
|
|
|
public void ForOverArray(string[] array) |
|
|
|