示例#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());
 }
示例#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());
 }