/// <summary> /// Add a set of device settings to the collection. /// </summary> public void AddDeviceSettings(DeviceSettings deviceSettings) { DeviceSettingsList.Add(deviceSettings); }
/// <summary> /// Returns true if a device settings class has been created for the specified type. /// </summary> public bool AreDeviceSetingsDefined <T>() where T : DeviceSettings { return(DeviceSettings.OfType <T>().Any()); }