This is a discussion on What is the difference between VB.Net and C#.Net within the VB.NET Programming forums, part of the Software Development category; Hi All, Can Anybody please tell me the difference between the Vb.Net and C#.net. Asked to me in ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi All, Can Anybody please tell me the difference between the Vb.Net and C#.net. Asked to me in many interviews. It's helpful to me and all. Thanks in Advance <aramesh> |
| Sponsored Links |
| |||
| Hui Dude this reply will be useful for your interview "Visual C# .NET looks more familiar to Visual C, Visual C++, and Java programmers, and Visual Basic .NET looks more familiar to Visual Basic developers. The biggest differences between the languages fall into the following categories: • Case sensitivity • Variable declaration and assignment • Data types • Statement termination • Statement blocks • Use of () vs. [] • Operators • Conditional statements • Error handling • Overflow checking • Parameter passing • Late binding • Handling unmanaged code • Keywords" - Vignesh Anand M.J |
| |||
| hi, see the attachment below it i will help you |
| |||
| You will find that there is not all that much distinguishing differences from Visual C# and Visual Basic. These languages are known as Intermediate Languages (IL). This becomes an important factor in that this can have a limitation in what systems may run the applications that are designed with these languages. The limitation falls from the code being interpreted by the Common Language Runtime (CLR). VB.Net is also a language that uses a Just-In-Time (JIT) compiler. This means that an application that is ran for the first time may take a few extra CPU cycles to execute because it is loading for the first time; however, the benefit therein lies when the application runs the code again it will be faster in execution because the JIT compiler had already compiled the coding. A prime example is that Visual C# can handle pointers directly, where as VB must use an API reference to do this
__________________ Shaalini.S ![]() Be the Best of Whatever you are... |
| |||
| These two languages are functionally equivalent, which means that they each provide equal abilities to create Web applications. The differences between the two languages are syntactical and stylistic. Visual Basic programmers will be more comfortable developing Web applications in Visual Basic .NET; C or C++ programmers will be more comfortable developing with Visual C#. VB.NET is not case sensitive .But C# is case sensitive. C# use braces ( { and } ) to declare functional blocks of code.VB.NET doesn't use braces . In VB.NET implicit type conversions are permitted by default. But in C# type conversions are performed explicitly by casts In VB.NET array elements are specified using parentheses. But in C# array elements are specified using square brackets. In VB.NET u can omit parentheses after method names if there are no arguments.But in C# u must include parentheses after all methods. In VB.NET all statements are terminated by carriage return. But in C# all statements are terminated by the semicolon ( .In VB.NET statements are continued using the underscore (_). In C# statements continue until the semicolon ( and can span multiple lines if needed.VB.NET use the ampersand (&) or plus sign (+) to join strings.But C# only use the plus sign (+) to join strings. I have taken the above details from a text . If u want examples mail me. u can get some information from the following link. Welcome to the MSDN Library VB.NET support boxing .See example below. Dim I As Integer = 100 Dim O As Object O = I |
![]() |
| Thread Tools | |
| Display Modes | |
| |