working with enums & properties
Hello,
Sorry for the question, but I am a beginner, and I need to solve this code fast:
I have the next enumeration:
public enum GameState {playing, win, lose}
I need to create a property State only for reading and I don't know how to do it.
Also I don't know how to assign a value to GameState.
Anybody can help me, please?
Thanks
-------------------------------
World only exists into your mind.
|