public ServiceState(ServiceStateCode code, string description) { this.Code = code; this.Description = description; }
public static string FriendlyNamed(ServiceStateCode code) { return dictionary.ContainsKey (code) ? dictionary [code] : default_string; }
public void ChangeState(ServiceStateCode code) { this.ChangeState (new ServiceState (code, string.Empty)); }