Versions des environnements
Network:
Windows 2008 Server
Call it after your wife - after all she's been stringing you along all the time ;-) Will be totally clear to all outsiders...
>I tested my code and get no problem having this class named String. But, just in case (so that you and Thomas don't tell me some day "I told you so :)) I may change the name to something very unique like MyString <g>.
>Thank you all for your input.
>
>
>>Yes. Anything in blue is considered a reserved word.
>>
>>>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#?
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