You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class Issue579SelectCaseWithCaseInsensitiveTextCompare
1771
-
Private Function Test(astr_Temp As String) As Boolean
1771
+
Private Function Test(astr_Temp As String) As Nullable(Of Boolean)
1772
1772
Select Case astr_Temp
1773
1773
Case ""Test""
1774
1774
Return True
1775
-
Case Else
1775
+
Case astr_Temp
1776
1776
Return False
1777
+
Case Else
1778
+
Return Nothing
1777
1779
End Select
1778
1780
End Function
1779
1781
End Class",@"using System.Globalization;
1780
1782
1781
1783
internal partial class Issue579SelectCaseWithCaseInsensitiveTextCompare
1782
1784
{
1783
-
private bool Test(string astr_Temp)
1785
+
private bool? Test(string astr_Temp)
1784
1786
{
1785
-
switch (astr_Temp)
1787
+
switch (astr_Temp ?? """")
1786
1788
{
1787
-
case var @case when CultureInfo.CurrentCulture.CompareInfo.Compare(@case ?? """", ""Test"" ?? """", CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0:
1789
+
case var @case when CultureInfo.CurrentCulture.CompareInfo.Compare(@case, ""Test"", CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0:
1788
1790
{
1789
1791
return true;
1790
1792
}
1791
1793
1792
-
default:
1794
+
case var case1 when CultureInfo.CurrentCulture.CompareInfo.Compare(case1, astr_Temp ?? """", CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0:
0 commit comments