c# - How to use ? character in an enum -


I work in C #, Visual Studio '05 ... in my nm, how do i 's Can i use 'Character? My value is below:

  public enum question {How_old_are_you? How to set _ = 0, //? Character what_is_your_name = 1}  

I '?' There are some errors after adding the character.

? A C # notifier does not have a valid character (which includes value values) I strongly recommend that you use something like:

  public enum question { Details ("How old are you?")] Age, [description ("What is your name?"] Name}  

Or a map or a resource file - just a natural language Do not try to make enum name in the description of.

Edit: For reference, How to do this (thanks):

  ((specialty details) attribute .GetCustomAttribute (typef (question) .GetField ("Age ", Binding flags, public; binding flag states), typef (explanation), wrong)). Description;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -