static string GetAndRemove (IDictionary table, string key) { string o = table [key] as string; table.Remove (key); return o; }