internal void Cleanse() { if (Arguments == null) { Arguments = new List <string>(); } if (LoggingPreferences == null) { LoggingPreferences = new Dictionary <string, LogLevel>(); } if (PerformanceLoggingPreferences == null) { PerformanceLoggingPreferences = new LoggingPreferencesPerformance(); } if (UserProfilePreferences == null) { UserProfilePreferences = new Dictionary <string, object>(); } Arguments = Arguments.Where(argument => !argument.StartsWith("!")).ToList(); LoggingPreferences = new Dictionary <string, LogLevel>(LoggingPreferences.Where(pair => !pair.Key.StartsWith("!")).ToDictionary(pair => pair.Key, pair => pair.Value)); UserProfilePreferences = new Dictionary <string, object>(UserProfilePreferences.Where(pair => !pair.Key.StartsWith("!")).ToDictionary(pair => pair.Key, pair => pair.Value)); ChromeLogPath = ChromeLogPath ?? System.IO.Path.Combine(System.IO.Path.GetTempPath(), "Chrome_debug.log"); }