|
|
|
@ -507,7 +507,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -507,7 +507,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
|
|
|
|
|
public void ForEachBreakWhenFound(string name, ref StringComparison output) |
|
|
|
|
{ |
|
|
|
|
#if MCS
|
|
|
|
|
#if MCS2
|
|
|
|
|
foreach (int value in Enum.GetValues(typeof(StringComparison))) |
|
|
|
|
{ |
|
|
|
|
if (((StringComparison)value).ToString() == name) |
|
|
|
@ -516,6 +516,16 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
@@ -516,6 +516,16 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#elif MCS5
|
|
|
|
|
foreach (int value in Enum.GetValues(typeof(StringComparison))) |
|
|
|
|
{ |
|
|
|
|
StringComparison stringComparison = (StringComparison)value; |
|
|
|
|
if (stringComparison.ToString() == name) |
|
|
|
|
{ |
|
|
|
|
output = (StringComparison)value; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#else
|
|
|
|
|
foreach (StringComparison value in Enum.GetValues(typeof(StringComparison))) |
|
|
|
|
{ |
|
|
|
|