[Refactor] Use collection expressions.

This commit is contained in:
2024-05-01 04:39:38 +01:00
parent f7ca79b09e
commit 134ce7041e
667 changed files with 12936 additions and 13750 deletions

View File

@@ -62,7 +62,7 @@ public sealed class DragonFlyBSD : IPartition
/// <inheritdoc />
public bool GetInformation(IMediaImage imagePlugin, out List<Partition> partitions, ulong sectorOffset)
{
partitions = new List<Partition>();
partitions = [];
uint nSectors = 2048 / imagePlugin.Info.SectorSize;
if(2048 % imagePlugin.Info.SectorSize > 0) nSectors++;