Esempio n. 1
0
 /// <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());
 }
Esempio n. 2
0
 /// <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());
 }