Versions des environnements
Network:
Windows 2008 Server
>Hi,
>I started working with .NET in 2005 and love C# and C# compiler. Although I am still learning basics.
>
>Yesterday while thinking of how to name a class I came up with the name String. And of course, putting this class in my namespace made it very legal (as far as C# compiler is concerned). But I am still wondering, should I be concerned when naming my class the same as probably one of the most used classes in C#?
Using 'String' is safe - but maybe not a good idea from a readability point of view. OTOH, I don't think Thomas's fears are justified re: interaction with other (non-case-sensitive) languages since only the type of a parameter is important.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement