mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 13:06:24 +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
@@ -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