Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help with Constants Pin
harold aptroot8-Oct-09 8:41
harold aptroot8-Oct-09 8:41 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:03
yogi_bear_798-Oct-09 9:03 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 10:09
yogi_bear_798-Oct-09 10:09 
GeneralRe: Help with Constants Pin
harold aptroot8-Oct-09 10:58
harold aptroot8-Oct-09 10:58 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 12:31
yogi_bear_798-Oct-09 12:31 
GeneralRe: Help with Constants Pin
harold aptroot8-Oct-09 12:34
harold aptroot8-Oct-09 12:34 
AnswerRe: Help with Constants Pin
Md. Marufuzzaman8-Oct-09 9:26
professionalMd. Marufuzzaman8-Oct-09 9:26 
AnswerRe: Help with Constants Pin
Luc Pattyn8-Oct-09 9:29
sitebuilderLuc Pattyn8-Oct-09 9:29 
Hi,

look at the line numbers, the error message points here: case globalVar.DIAMONDS:
and of course it is right, you made _DIAMONDS a const, however DIAMONDS isn't const, it is a property.

the solution is easy: make your _DIAMONDS a public const and get rid of the property and the underscore.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:42
yogi_bear_798-Oct-09 9:42 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:55
yogi_bear_798-Oct-09 9:55 
AnswerRe: Help with Constants Pin
Christian Graus8-Oct-09 9:31
protectorChristian Graus8-Oct-09 9:31 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:33
yogi_bear_798-Oct-09 9:33 
GeneralRe: Help with Constants Pin
Christian Graus8-Oct-09 9:49
protectorChristian Graus8-Oct-09 9:49 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 9:53
yogi_bear_798-Oct-09 9:53 
GeneralRe: Help with Constants Pin
Christian Graus8-Oct-09 10:13
protectorChristian Graus8-Oct-09 10:13 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 12:35
yogi_bear_798-Oct-09 12:35 
AnswerRe: Help with Constants Pin
PIEBALDconsult8-Oct-09 10:48
mvePIEBALDconsult8-Oct-09 10:48 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 10:53
sitebuilderLuc Pattyn8-Oct-09 10:53 
GeneralRe: Help with Constants Pin
PIEBALDconsult8-Oct-09 10:57
mvePIEBALDconsult8-Oct-09 10:57 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 11:07
sitebuilderLuc Pattyn8-Oct-09 11:07 
GeneralRe: Help with Constants Pin
Henry Minute8-Oct-09 11:41
Henry Minute8-Oct-09 11:41 
GeneralRe: Help with Constants Pin
Luc Pattyn8-Oct-09 11:53
sitebuilderLuc Pattyn8-Oct-09 11:53 
GeneralRe: Help with Constants Pin
PIEBALDconsult8-Oct-09 16:26
mvePIEBALDconsult8-Oct-09 16:26 
GeneralRe: Help with Constants Pin
Luc Pattyn9-Oct-09 5:27
sitebuilderLuc Pattyn9-Oct-09 5:27 
GeneralRe: Help with Constants Pin
yogi_bear_798-Oct-09 12:34
yogi_bear_798-Oct-09 12:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.