private static void Handle_Rekey ( Shell Dispatch, string[] args, int index) { Rekey Options = new Rekey (); var Registry = new Goedel.Registry.Registry (); #pragma warning disable 162 for (int i = index; i< args.Length; i++) { if (!IsFlag (args [i][0] )) { throw new System.Exception ("Unexpected parameter: " + args[i]);} string Rest = args [i].Substring (1); TagType_Rekey TagType = (TagType_Rekey) Registry.Find (Rest); // here have the cases for what to do with it. switch (TagType) { default : throw new System.Exception ("Internal error"); } } #pragma warning restore 162 Dispatch.Rekey (Options); }