mirror of
https://github.com/aaru-dps/Aaru.Helpers.git
synced 2025-12-16 19:24:35 +00:00
Pass string interpolation.
This commit is contained in:
@@ -69,7 +69,7 @@ public static partial class ArrayHelpers
|
||||
var sb = new StringBuilder();
|
||||
|
||||
for(long i = 0; i < array.LongLength; i++)
|
||||
sb.AppendFormat("{0:x2}", array[i]);
|
||||
sb.Append($"{array[i]:x2}");
|
||||
|
||||
return upper ? sb.ToString().ToUpper() : sb.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user