Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class named String
Message
 
 
À
10/11/2013 12:05:22
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587660
Message ID:
01587675
Vues:
26
>>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.

I agree with you. But, as I said, just in case I may change the name of the class. I like my class names to be short, simple, and clear. The name String seemed like a good one. I will be thinking about a new name all day today <g>.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform