private DeviceKeyCombination(string device, string key, IEnumerable <DeviceKey> modifiers) : base(device, key) { Modifiers = new DeviceKeySet(modifiers); }
/// <summary> /// Determines wheter this instance and the given device key collection instance represent the same set of device keys. /// </summary> /// <param name="other">The device key collection to compare against this instance.</param> /// <returns><c>true</c> if <paramref name="other"/> represents the same set of device key as this instance; otherwise, <c>false</c>.</returns> public bool Equals(DeviceKeySet other) { return(other != null && _modifiers.SetEquals(other._modifiers)); }