mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-12 05:28:14 +00:00
Applied some C#12 stuff
This commit is contained in:
1 parent
0444730aca
commit
d85f1559b3
105 files changed
+329
-422
No files matched your search
@@ -6,5 +6,4 @@ namespace RGB.NET.Presets.Decorators;
|
||||
/// <summary>
|
||||
/// Represents a basic decorator decorating a <see cref="T:RGB.NET.Presets.Gradients.IGradient" />.
|
||||
/// </summary>
|
||||
public interface IGradientDecorator : IDecorator
|
||||
{ }
|
||||
public interface IGradientDecorator : IDecorator;
|
||||
@@ -24,7 +24,7 @@ public abstract class AbstractGradient : AbstractDecoratable<IGradientDecorator>
|
||||
/// <summary>
|
||||
/// Gets a list of the stops used by this <see cref="AbstractGradient"/>.
|
||||
/// </summary>
|
||||
public ObservableCollection<GradientStop> GradientStops { get; } = new();
|
||||
public ObservableCollection<GradientStop> GradientStops { get; } = [];
|
||||
|
||||
private bool _wrapGradient;
|
||||
/// <summary>
|
||||
|
||||
@@ -16,7 +16,7 @@ public sealed class LinearGradient : AbstractGradient
|
||||
#region Properties & Fields
|
||||
|
||||
private bool _isOrderedGradientListDirty = true;
|
||||
private readonly List<GradientStop> _orderedGradientStops = new();
|
||||
private readonly List<GradientStop> _orderedGradientStops = [];
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user