Type Conversions are translated incorrectly from VB to C#

1 posts, 0 answers
  1. bdukes
    bdukes avatar
    14 posts
    Member since:
    Jun 2007

    Posted 21 Aug 2009 Link to this post

    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.
Back to Top