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
Hello,
Sorry, it is a VB-> C# case
I have made a test with the last version (the "Beta" to test if the previous problems were solved and I saw a new problem.
Thank you
Input code
Private Sub Test3(CurRow As DataRow)
For Each CurCol As DataColumn In CurRow.GetColumnsInError
If IsDBNull(CurRow.Item(CurCol)) Then
Select Case CurCol.DataType
Case GetType(String)
CurRow.Item(CurCol) = String.Empty
Case Else
CurRow.Item(CurCol) = 0
End Select
CurRow.ClearErrors()
End If
Next
End Sub
### Erroneous output
```C#
private void Test3(DataRow CurRow)
{
foreach (DataColumn CurCol in CurRow.GetColumnsInError())
{
if (Information.IsDBNull(CurRow[CurCol]))
{
switch (CurCol.DataType)
{
case var @case when CultureInfo.CurrentCulture.CompareInfo.Compare(@case, new string(typeof(string) ?? new char[0]), CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0:
{
CurRow[CurCol] = string.Empty;
break;
}
default:
{
CurRow[CurCol] = 0;
break;
}
}
CurRow.ClearErrors();
}
}
}
I use the last version (the "Beta version" that is built as it is more recent than the one in Visual Studio
It is working in the old version. I think that it is because of the correction #579.
The text was updated successfully, but these errors were encountered:
Hello,
Sorry, it is a VB-> C# case
I have made a test with the last version (the "Beta" to test if the previous problems were solved and I saw a new problem.
Thank you
Input code
Private Sub Test3(CurRow As DataRow)
For Each CurCol As DataColumn In CurRow.GetColumnsInError
If IsDBNull(CurRow.Item(CurCol)) Then
Select Case CurCol.DataType
Case GetType(String)
CurRow.Item(CurCol) = String.Empty
Case Else
CurRow.Item(CurCol) = 0
End Select
CurRow.ClearErrors()
End If
Next
End Sub
Expected output
Details
I use the last version (the "Beta version" that is built as it is more recent than the one in Visual Studio
It is working in the old version. I think that it is because of the correction #579.
The text was updated successfully, but these errors were encountered: