X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mDoc.git/blobdiff_plain/6d53055836c5a23a239ee84f6d4d6ce0d9075db5..bc02e26749d7b41fa7095c626d35694a9651fe3f:/csharp/mutil/ReturnCode.cs diff --git a/csharp/mutil/ReturnCode.cs b/csharp/mutil/ReturnCode.cs new file mode 100644 index 0000000..7702231 --- /dev/null +++ b/csharp/mutil/ReturnCode.cs @@ -0,0 +1,21 @@ +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)); + } + } + } +} \ No newline at end of file