This is a migrated thread and some comments may be shown as answers.

Type Conversions are translated incorrectly from VB to C#

0 Answers 27 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bdukes
Top achievements
Rank 2
bdukes asked on 21 Aug 2009, 05:09 PM
I just noticed that some VB.NET code was translated a little incorrectly into C#.

CType("true"Boolean

became

(bool)"true" 

where it should probably be

Convert.ToBoolean("true"

since the CType function accepts strings.  I don't think it's exactly the same semantics, but it's a lot closer.
Tags
Code Converter
Asked by
bdukes
Top achievements
Rank 2
Share this question
or