Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A class per file or multiple classes per file?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
A class per file or multiple classes per file?
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01124405
Message ID:
01124405
Vues:
49
Hi all,

Coding in C#, which is a better practice: put one class per file and allow the file share the same name as class name (like in Java) or put multiple classes in a file (like in VFP)?

I'm inclined toward the former since it's easier to find a class by just looking at the file name.

Any suggestions or comments will be appreciated!
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform