Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public constant
Message
 
 
To
18/03/2013 13:05:29
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01568710
Message ID:
01568721
Views:
28
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform