By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,581 Members | 2,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,581 IT Pros & Developers. It's quick & easy.

Large amount VB code convert into C.Sharp

P: n/a
ABC
I have a very large amount VB code convert into C Sharp. I just complete it
use tools. But it still have some codes errors. There are object to
datatype problems. I need to edit many files to convert to as like as
int.parse(obj), bool.parse(obj).....

Is there any good methods force C# can accept objects implicitly convert
type object to the specific type without editing all codes.
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
The type to parse is going to be a string...

If you can't find a VB to C# converter use Reflector to read the assembly
created in VB and tell it to show you the output in C#.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"ABC" <abc.abc.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a very large amount VB code convert into C Sharp. I just complete
it use tools. But it still have some codes errors. There are object to
datatype problems. I need to edit many files to convert to as like as
int.parse(obj), bool.parse(obj).....

Is there any good methods force C# can accept objects implicitly convert
type object to the specific type without editing all codes.

Nov 17 '05 #2

P: n/a
None of the VB to C# converters (including ours) does extensive type
inference for variables declared as Object. The only tool I'm aware of that
might be of help to you is the VB Companion tool produced by Artinsoft (they
also make the VB6 Upgrade Wizard for Microsoft).
http://www.artinsoft.com/pr_vbcompanion.aspx

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
Clear VB: Cleans up outdated VB.NET code
"ABC" wrote:
I have a very large amount VB code convert into C Sharp. I just complete it
use tools. But it still have some codes errors. There are object to
datatype problems. I need to edit many files to convert to as like as
int.parse(obj), bool.parse(obj).....

Is there any good methods force C# can accept objects implicitly convert
type object to the specific type without editing all codes.

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.