icsharpcode/CodeConverter

VB -> C#: Error translating Not (x IsNot Nothing)

mom-bbtsoftware opened this issue · 2 comments

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

Yikes. Thanks for the report, I can guess how that happened. Should be an easy fix.