misc: chore: Use collection expressions in Avalonia project

This commit is contained in:
Evan Husted
2025-01-26 15:47:11 -06:00
parent 46a5cafaa8
commit ae90db2040
28 changed files with 114 additions and 112 deletions

View File

@@ -10,10 +10,10 @@ namespace Ryujinx.Ava.Utilities
public static class ValueFormatUtils
{
private static readonly string[] _fileSizeUnitStrings =
{
[
"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", // Base 10 units, used for formatting and parsing
"KB", "MB", "GB", "TB", "PB", "EB", // Base 2 units, used for parsing legacy values
};
"KB", "MB", "GB", "TB", "PB", "EB" // Base 2 units, used for parsing legacy values
];
/// <summary>
/// Used by <see cref="FormatFileSize"/>.