using System; namespace mutil { public class ReturnCode { public const int OK = 0; public const int FileNotFound = 1; int RC; public ReturnCode(int RC) { this.RC = RC; } override public string ToString() { switch (this.RC) { case OK : return "OK"; case FileNotFound: return "FileNotFound"; default: throw new System.Exception("Unknown RC: " + Convert.ToString(this.RC)); } } } }