コード例 #1
0
 /// <summary>
 /// Add a set of device settings to the collection.
 /// </summary>
 public void AddDeviceSettings(DeviceSettings deviceSettings)
 {
     DeviceSettingsList.Add(deviceSettings);
 }
コード例 #2
0
 /// <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());
 }