public SystemErrors() { if (g_ErrorObject != null) { throw new ArgumentNullException ("Constructor", string.Format (CultureInfo.InvariantCulture, "Global pointer NOT Null")); } g_ErrorObject = this; }
static public string TranslateError (string internalName) { if (g_ErrorObject == null) { // Allocate error object g_ErrorObject = new SystemErrors (); #if DEBUG SystemErrors.GenerateFile (); #endif } return SystemErrors.Instance.Translate (internalName); }