protected SavedListConfigurationList ExtractConfigurationObject(SavedListConfiguration config) { SavedListConfigurationList obj; try { obj = !string.IsNullOrEmpty(config.Configuration) ? config.Configuration.FromXmlString <SavedListConfigurationList>() : new SavedListConfigurationList(); } catch (Exception ex) { Logging.Client.Warn("Error during deserializing SavedListConfigurationList, creating a new one", ex); obj = new SavedListConfigurationList(); } return(obj); }
protected SavedListConfigurationList ExtractConfigurationObject(SavedListConfiguration config) { SavedListConfigurationList obj; try { obj = !string.IsNullOrEmpty(config.Configuration) ? config.Configuration.FromXmlString<SavedListConfigurationList>() : new SavedListConfigurationList(); } catch (Exception ex) { Logging.Client.Warn("Error during deserializing SavedListConfigurationList, creating a new one", ex); obj = new SavedListConfigurationList(); } return obj; }