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

@@ -154,7 +154,7 @@ namespace DiscImageChef.Devices
: FreeBSD.Command.SendScsiCommand((IntPtr)fd, cdb, ref buffer, out senseBuffer, timeout,
flags, out duration, out sense);
}
default: throw new InvalidOperationException(string.Format("Platform {0} not yet supported.", ptId));
default: throw new InvalidOperationException($"Platform {ptId} not yet supported.");
}
}
@@ -201,7 +201,7 @@ namespace DiscImageChef.Devices
return FreeBSD.Command.SendAtaCommand((IntPtr)fd, registers, out errorRegisters, protocol,
ref buffer, timeout, out duration, out sense);
}
default: throw new InvalidOperationException(string.Format("Platform {0} not yet supported.", ptId));
default: throw new InvalidOperationException($"Platform {ptId} not yet supported.");
}
}
@@ -249,7 +249,7 @@ namespace DiscImageChef.Devices
return FreeBSD.Command.SendAtaCommand((IntPtr)fd, registers, out errorRegisters, protocol,
ref buffer, timeout, out duration, out sense);
}
default: throw new InvalidOperationException(string.Format("Platform {0} not yet supported.", ptId));
default: throw new InvalidOperationException($"Platform {ptId} not yet supported.");
}
}
@@ -288,7 +288,7 @@ namespace DiscImageChef.Devices
return FreeBSD.Command.SendAtaCommand((IntPtr)fd, registers, out errorRegisters, protocol,
ref buffer, timeout, out duration, out sense);
}
default: throw new InvalidOperationException(string.Format("Platform {0} not yet supported.", ptId));
default: throw new InvalidOperationException($"Platform {ptId} not yet supported.");
}
}
@@ -321,7 +321,7 @@ namespace DiscImageChef.Devices
blockSize, blocks, ref buffer, out response, out duration,
out sense, timeout);
}
default: throw new InvalidOperationException(string.Format("Platform {0} not yet supported.", ptId));
default: throw new InvalidOperationException($"Platform {ptId} not yet supported.");
}
}
}