diff --git a/RGB.NET.Core/Events/DevicesChangedEventArgs.cs b/RGB.NET.Core/Events/DevicesChangedEventArgs.cs index 5b5012d..53a5a97 100644 --- a/RGB.NET.Core/Events/DevicesChangedEventArgs.cs +++ b/RGB.NET.Core/Events/DevicesChangedEventArgs.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace RGB.NET.Core; @@ -7,8 +8,8 @@ public sealed class DevicesChangedEventArgs : EventArgs { #region Properties & Fields - public IList Added { get; } - public IList Removed { get; } + public IReadOnlyList Added { get; } + public IReadOnlyList Removed { get; } #endregion @@ -16,8 +17,8 @@ public sealed class DevicesChangedEventArgs : EventArgs private DevicesChangedEventArgs(IList added, IList removed) { - this.Added = added; - this.Removed = removed; + this.Added = new ReadOnlyCollection(added); + this.Removed = new ReadOnlyCollection(removed); } #endregion