Does anyone know how to Change VB project code to C# using Visual Studio 2010?
Any help appreciated
I don't believe Visual Studio itself provides any capabilities around this, but there are various other options. There are specific converters such as the ones from Tangible . Alternatively, you could build the VB code and then decompile to C# in something like Reflector or dotPeek . (Latest versions of Reflector are not free, but there is still a version 6 release which will not have a time bomb .)
Note that a verbatim translation of the code is likely to end up calling various methods in the Microsoft.VisualBasic
assembly - you'll want to do a bit more work to turn it into idiomatic C#.
Telerik has a free converter here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.