/// <summary> /// will return the List of ISetting that match the type provided /// </summary> public List <TSetting> OfType <TSetting>() where TSetting : class, ISetting { return(SettingsList.OfType <TSetting>().ToList()); }
/// <summary> /// will return the TSetting item in the settings collection list /// </summary> public TSetting Item <TSetting>() where TSetting : class, ISetting { return(SettingsList.OfType <TSetting>().FirstOrDefault()); }