I'm creating an enum for a field in a Class and I need one of the values to be Start-up
. However, when I type this, I get an error } expected
. StartUp, on the other hand, is allowed but I really need the dash to be in there..
I also have other fields with the same problem for spaces..
Does anyone know of a way that I can get the value as shown above?
Code Example:
using System;
namespace XMLConverter.Models
{
public enum SiteStatus { Hold, Planned, Proposed, Qualifying, StartUp, Open, Enrollment Complete, Closed, Stopped, Not Selected, Withdrew }
public class Site
{
public string StudyName { get; set; }
public string SiteNumber { get; set; }
public string SiteName { get; set; }
public SiteStatus SiteStatus { get; set; }
}
}