Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cost for .Net
Message
 
À
08/02/2002 13:10:19
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00609123
Message ID:
00617602
Vues:
32
>>This is true. You don't need import the System class for that matter.
>>
public class Class1{}
>>I was trying to give a "fair" comparison against John's VB example.
>
>Interesting, so John's two lines can be written as one line in C#? I wonder why he chose to complicate the C# code and not the VB.NET code.

Don't know. Of course you can't do much if you don't at least import the system class. I have done this before when creating a "global" include class to define properties that need to be shared such as connection strings, Database names, Test/Production flags, etc.

John is probably refering to the System class being imported without having to actually type "Import System". Kinda of minor since when you create a new class in C# the "using System" line is automatically type in for you.
Michael McLain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform