mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Changed IReadOnlyCollections to IReadOnlyLists
This commit is contained in:
parent
ef3998055d
commit
ef12e402ea
@ -14,7 +14,7 @@ namespace RGB.NET.Core
|
|||||||
private readonly List<T> _decorators = new();
|
private readonly List<T> _decorators = new();
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public IReadOnlyCollection<T> Decorators { get; }
|
public IReadOnlyList<T> Decorators { get; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ namespace RGB.NET.Core
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a readonly-list of all <see cref="IDecorator"/> attached to this <see cref="IDecoratable{T}"/>.
|
/// Gets a readonly-list of all <see cref="IDecorator"/> attached to this <see cref="IDecoratable{T}"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IReadOnlyCollection<T> Decorators { get; }
|
IReadOnlyList<T> Decorators { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds an <see cref="IDecorator"/> to the <see cref="IDecoratable"/>.
|
/// Adds an <see cref="IDecorator"/> to the <see cref="IDecoratable"/>.
|
||||||
|
|||||||
@ -30,7 +30,7 @@ namespace RGB.NET.Core
|
|||||||
protected Dictionary<int, IDeviceUpdateTrigger> UpdateTriggerMapping { get; } = new();
|
protected Dictionary<int, IDeviceUpdateTrigger> UpdateTriggerMapping { get; } = new();
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public ReadOnlyCollection<(int id, IDeviceUpdateTrigger trigger)> UpdateTriggers => new(UpdateTriggerMapping.Select(x => (x.Key, x.Value)).ToList());
|
public IReadOnlyList<(int id, IDeviceUpdateTrigger trigger)> UpdateTriggers => new ReadOnlyCollection<(int id, IDeviceUpdateTrigger trigger)>(UpdateTriggerMapping.Select(x => (x.Key, x.Value)).ToList());
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
|
|
||||||
namespace RGB.NET.Core
|
namespace RGB.NET.Core
|
||||||
{
|
{
|
||||||
@ -31,7 +30,7 @@ namespace RGB.NET.Core
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a collection <see cref="IDeviceUpdateTrigger"/> registered to this device provider.
|
/// Gets a collection <see cref="IDeviceUpdateTrigger"/> registered to this device provider.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ReadOnlyCollection<(int id, IDeviceUpdateTrigger trigger)> UpdateTriggers { get; }
|
IReadOnlyList<(int id, IDeviceUpdateTrigger trigger)> UpdateTriggers { get; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@ -27,12 +27,12 @@ namespace RGB.NET.Core
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a readonly list containing all loaded <see cref="IRGBDevice"/>.
|
/// Gets a readonly list containing all loaded <see cref="IRGBDevice"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IReadOnlyCollection<IRGBDevice> Devices { get; }
|
public IReadOnlyList<IRGBDevice> Devices { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a readonly list containing all registered <see cref="IUpdateTrigger"/>.
|
/// Gets a readonly list containing all registered <see cref="IUpdateTrigger"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IReadOnlyCollection<IUpdateTrigger> UpdateTriggers { get; }
|
public IReadOnlyList<IUpdateTrigger> UpdateTriggers { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a copy of the <see cref="Rectangle"/> representing this <see cref="RGBSurface"/>.
|
/// Gets a copy of the <see cref="Rectangle"/> representing this <see cref="RGBSurface"/>.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user