Use C# 12 [] syntax for empty ToonPropertyAccessor array
Replaced Array.Empty<ToonPropertyAccessor>() with the new C# 12 collection expression [] for initializing the Properties field as an empty array, resulting in more concise and modern code.
This commit is contained in:
parent
de532c3bc7
commit
c631006303
|
|
@ -53,7 +53,7 @@ public static partial class AcToonSerializer
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Properties = Array.Empty<ToonPropertyAccessor>();
|
Properties = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue