When I used it, the effect was good. The conversion of a single unit was good, but there were many obvious errors in conversion from VB. NET to C,
For example
Ilist list;
List (INDEX) --> convert to list (INDEX) instead of list [Index]
Tostring, tolower, getnextentry
Not converted to add ()
Online conversion of
Because. NET provides a variety of development languages, such as C #, VB.. net, J #, etc. Developers usually only choose one of them for daily use and rarely use them together, except for Nb characters.It is essential to develop programs for reference. net implementation, if you directly look at VB. net, may think it is big, thenCodeBetween, It is necessary.Here
Because of the working relationship, a VB. Net project needs to be converted to a C # project.
This is just to share several conversion tools, not to praise such conversion;
If it is not necessary, it is best not to convert it because it may bring unexpected problems.
Tool 1:
VB. NET
In our daily work, we often need to convert Excel documents into PDF documents. Are you in distress how to C #, VB. NET programming how to convert an Excel document to a PDF document? Do you look up a lot of data, use a lot of code, but the effect is still not ideal after the conversion? Don't worry, this article will
As we all know, Word is one of the most commonly used office software in our daily work, sometimes we need to convert Word documents to PDF and text for some kind of needs. So how to C#,VB. NET programming way to achieve this function?Below I will separately describe how to use the free version of Spire.doc for. NET components for Word to PDF and text conversion.
Online tools -- set C #CodeConvert to VB. NET code
Many of my friends often encounter VB. NET code when looking for information on the Internet, but only the C # code.
You cannot change it yourself!
I accidentally found an online
Idea: Simulate data submission, analyze and send back data, and extract results.
Let's first look at this website,
Http://www.developerfusion.com/tools/convert/csharp-to-vb/ [convertor]
Open the [convertor] site and use firebug or httpwatch to analyze the post data. refer to the following for details.Code:
Automaticclipboard = ture automaticclipboard = false code ="+Code
The previous line of cod
Below are n VB. NET to C # (C # To VB.net)CodeConversion (interchange) Tool
1. http://www.kamalpatel.net/(the most commonly used, but cannot be converted to a hexadecimal INT)Online version: VB. NET => C # =>
local variables, and the variables defined in the class module are global variables.
Iii. Exception Handling
In C #, an exception is thrown when a method detects an error condition, such as a division of 0. Example:
Class program {static void main (string [] ARGs) {int result = 0; // defines the result variable and assigns the initial value 0 console. writeline ("Enter the value of X:"); int x = convert.
A lot of people may encounter a problem when looking for related materials on the Internet: [I am studying VB.. net, C # program cannot understand.] Or [I want to learn C #, but I cannot understand the content of VB. NET plugin .] In fact, this is a pity, because you are not familiar with
)
Java Byte ranges from-127 to 128, while C, C ++, VB, and OC are 0-255.
So what I think of is the simplest and most common method, so that I can avoid a lot of detours. What kind of high turn to low, the status turns to high, this doesn't work, it's called a cry (before I found this, I have learned a lot about it, and I will share it here .)
To put it blunt
value, the data type with a small value range can be converted to a data type with a large value range by implicit conversion, which in turn must be converted to display. For the class type, the child type can be converted to the parent class for implicit conversion, which in turn must be converted to display, for example:
Stringstr1 = "abc ";
Object obj = str1; // The subclass is converted to the parent class, which is implicitly converted.
Stringstr2 = (string) obj; //
1. http://www.kamalpatel.net/(the most commonly used, but cannot be converted to a hexadecimal INT)
Online version: VB. NET => C # => VB. NET
Offline version: C # => VB. NET
2. http://csharpconverter.claritycon.com/(recommended
[]) // The String. Split (char []) overload is called here.IL_0029: stloc.1IL_002a: nopIL_002b: ret} // End of method Module1: Main
This section of IL code proves my first inference, VB. the NET compiler indeed constructs a char array, which is different from the C # compiler. The C # compiler does not implicitly convert
development tool that supports multiple programming languages, including C #, java, and VB.. NET. It also supports multiple language interfaces. Like any tool developed by enthusiasts, SharpDevelop has gone through many versions. The latest version is # develop 1.0.0.1550 of 9/12/2004.
The style of this editor is similar to Office XP and. NET, this Editor supports Writing
programmer so only developed, is a sibuxiang. But now the development of the project with vb.net also a lot. It certainly has its good point.So I looked up the comparison between them on the Internet. Vb. NET is not as good as C # in terms of inheritance, because C # is more intuitive. The C # language is more concise
Often see some examples of VB directly with a CreateObject can invoke system functions (mostly COM objects), such as user settings, network settings and so on. Although C # can invoke the CreateObject function by using the method of the namespace of VB, this comparison is useless because the method of the generated object cannot be used. In
Vbconversions VB. NET to C # Converter
Vbconversions 'vb. net to C # converter is a state of the art Conversion Program which actually rewrites your Visual Basic. net project in C #. unlike other conversion programs, variable names, comments, and inline comments
1. Project Conversion
A) Determine the project to be converted
I. Non-converted C # projects can coexist with VB Projects
B) establish corresponding VB Projects
I. Move the file to this project and convert it one by one
2. Item Conversion
A) prepare
I. Conversion Tool http://codeconverter.sharpdevelop.net/SnippetConver
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.