REFACTOR: Use string interpolation expression.

This commit is contained in:
2017-12-21 17:58:51 +00:00
parent a895700757
commit 4e6e8f340a
182 changed files with 766 additions and 1256 deletions

View File

@@ -207,7 +207,7 @@ namespace DiscImageChef.DiscImages
case DiskType.MF2HD:
tracks = 160;
break;
default: throw new ImageNotSupportedException(string.Format("Incorrect disk type {0}", (byte)type));
default: throw new ImageNotSupportedException($"Incorrect disk type {(byte)type}");
}
byte[] trackBytes = new byte[tracks];