both vb.net and C# used for windows application
then on every new project why we get different code file?
C#
namespace WindowsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}
VB.NET
Public Class Form1
End Class
can anyone tell me the why?
thank you..!

Jaish MathewsPosted Jul 17, 2010, 1:38 PM
VB.NET has the responsibility of carry forward the VB6.0 syntax. Because Microsoft don't need the big VB6.0/COM programmers to go some where rather than migrate to .NET. The syntax of VB.NET resembles with VB6.0. So VB6.0 developers can easily migrate to .NET. But C# is an entirely new language developed only for .NET. Thta's why they C# and VB.NET syntax are different. But after compilation and converted to CIL language, both may not showing any difference. You please try this by opening 2 assemblies in ILDASM tool.
hariomPosted Aug 30, 2010, 8:28 AM
so we need both type of files
Dipa AhujaPosted Jul 18, 2010, 8:56 AM
Sam HobbsPosted Jul 17, 2010, 4:37 PM
Bruce RoeserPosted Jul 17, 2010, 1:32 PM
VB.Net hides a lot more of the low-level code details from the user. VB is intended as an easier entry-level for a developer in .Net than C# is. You can look at the lower-level details in VB if you want to but the overall concept of VB is relative simplicity.
The underlying details are the same for both languages, the presentation to the developer is different, that's all.
-bwr-