VB -> C#: Error translating Not (x IsNot Nothing)
mom-bbtsoftware opened this issue · 2 comments
mom-bbtsoftware commented
VB.Net input code
If Not (x IsNot Nothing) Then
' same meaning as: If x Is Nothing Then
Erroneous output
if (x is not null)
Expected output
if (x is null)
Details
- Product in use: icsharpcode.github.io/CodeConverter VS extension
- Version in use: 9.2.5 (latest release)
mom-bbtsoftware commented
GrahamTheCoder commented
Yikes. Thanks for the report, I can guess how that happened. Should be an easy fix.