I have a static class defined like this:
public static class JobStatus
{
public const string Completed = "Completed";
public const string Failed = "Failed";
public const string Stopped = "Stopped";
}
(this is actually an external library, so can't change this)
In my non-static class I want a member of that class to ensure that you can only declare it of that "type"
public class JobOutput
{
public string Output { get; set; }
public string OutputError { get; set; }
public JobStatus JobStatus { get; set; }
}
Error: 'JobStatus': static types cannot be used as return types / 'JobStatus': static types cannot be used as parameters
Yeye I know your eyes are bleeding, but I hope you get the point - how can I ensure and achieve a form of type-safety for my JobStatus property?