SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Browse by Tags

All Tags » Visual Basic » Code conversion (RSS)
  • Re: VB CInt() convert to C# is an int cast but should be Convert.ToInt()

    Recall the cast (int)( expr ) is the wrong answer for VB CInt( expr ) to C# -- i.e, should be Convert.ToInt32( expr ) . Still, to answer the question, the following types for expr can be specified for the explicit cast to int (more to come :-) ): (int)( long_expr ) (int)( ulong_expr ) (int)( float_expr...
    Posted to Forum by harrystein on 03-05-2008
    Filed under: Translation, Code conversion, Visual Basic, convert
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.