Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Choosing the proper environment
Message
 
To
24/01/2002 13:17:45
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00609810
Message ID:
00610002
Views:
24
>>>>Not necessarily. There are some changes to VB .Net that will cause many VB6 devleopers to have fits.
>>>
>>>Yes, but aren't there some similarities? I assume it should be harder to move to C# for example, in that situation.
>>
>>
>>Learning .Net is 95% learning the Framework and 5% learning the language syntax. VB.Net and C# are very similar. Once you learn one, you can expect to learn the other in less then a week.
>
>I had the assumption that the syntax of each command line would be completely different for those two environments. Is that the case?

They are really simillar, but the 95% - 5% ratio will be more 85% - 15% IMO.
Se this sample from the framework help:


The following code example shows how to use the IO classes to create a listing of a directory.

[Visual Basic]
Option Explicit
Option Strict
Imports System
Imports System.IO
Class DirectoryLister
   Public Shared Sub Main()
      Dim dir As New DirectoryInfo(".")
      Dim f As FileInfo
      For Each f In  dir.GetFiles("*.cs")
         Dim name As [String] = f.FullName
         Dim size As Long = f.Length
         Dim creationTime As DateTime = f.CreationTime
         Console.WriteLine("{0,-12:N0} {1,-20:g} {2}", size, creationTime, name)
      Next f
   End Sub
End Class
[C#]
using System;
using System.IO;
class DirectoryLister
{
   public static void Main(String[] args)
   {
      DirectoryInfo dir = new DirectoryInfo(".");
      foreach (FileInfo f in dir.GetFiles("*.cs")) 
      {
         String name = f.FullName;
         long size = f.Length;
         DateTime creationTime = f.CreationTime;
         Console.WriteLine("{0,-12:N0} {1,-20:g} {2}", size, 
            creationTime, name);
      }
   }
}
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform