Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public constant
Message
 
 
À
18/03/2013 13:05:29
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01568710
Message ID:
01568721
Vues:
27
>>Didn't work for me - I was unable to access this constant from another class - but I think I know what I was doing wrong - I was trying to access it using class name instance instead of the Type instance. Because when I got similar error using that property I switched to Database.Property instead of database.Property (where Database is the class name while database is the class instance name).
>>
>>Do you think that was the original problem?
>
>
>Constants are by definition static

Right. That was indeed the problem.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform