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:
Loretta 2026-01-14 21:04:00 +01:00
parent de532c3bc7
commit c631006303
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public static partial class AcToonSerializer
}
else
{
Properties = Array.Empty<ToonPropertyAccessor>();
Properties = [];
}
}
}