i have to create an enum that contains values that are having spaces
public enum MyEnum
{
My cart,
Selected items,
Bi
Enum just cant have space! What do you need it for? If you need it simply for display purpose, you can stick with underscore and write an extension method for your enum so that you can ask for the display text by doing this (assuming your ext method is call DisplayText). Internally you just implement the DisplayText method to substitute "_" with space
MyEnum.My_Cart.DisplayText(); // which return "My Cart"