mirror of
https://github.com/aaru-dps/Aaru.Checksums.git
synced 2025-12-16 19:24:29 +00:00
Use foreach instead of for-loops where appropriate.
This commit is contained in:
@@ -180,8 +180,8 @@ public class Crc16Context : IChecksum
|
||||
|
||||
byte[] finalBytes = BigEndianBitConverter.GetBytes(final);
|
||||
|
||||
for(var i = 0; i < finalBytes.Length; i++)
|
||||
crc16Output.Append(finalBytes[i].ToString("x2"));
|
||||
foreach(byte t in finalBytes)
|
||||
crc16Output.Append(t.ToString("x2"));
|
||||
|
||||
return crc16Output.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user