Applied some C#12 stuff

This commit is contained in:
DarthAffe committed 2023-12-22 20:56:56 +01:00
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