public void DeletePrompt(TypePromptKey key) { if (key == null) { throw new ArgumentNullException("key"); } Prompts.RemoveAll(k => k.TextKey == key.ToString()); }