Emulation.DiscSystem - cleanup - use expression body

This commit is contained in:
adelikat 2020-02-26 14:41:54 -06:00
parent eb4acc0090
commit 2afa05d2c7
3 changed files with 4 additions and 11 deletions

View File

@ -22,17 +22,13 @@ namespace BizHawk.Emulation.DiscSystem
/// Build a converter from little endian to the system endian-ness.
/// </summary>
/// <returns>The converter</returns>
public static EndianBitConverter CreateForLittleEndian() {
return new EndianBitConverter(!BitConverter.IsLittleEndian);
}
public static EndianBitConverter CreateForLittleEndian() => new EndianBitConverter(!BitConverter.IsLittleEndian);
/// <summary>
/// Build a converter from big endian to the system endian-ness.
/// </summary>
/// <returns>The converter</returns>
public static EndianBitConverter CreateForBigEndian() {
return new EndianBitConverter(BitConverter.IsLittleEndian);
}
public static EndianBitConverter CreateForBigEndian() => new EndianBitConverter(BitConverter.IsLittleEndian);
#endregion

View File

@ -37,7 +37,7 @@ namespace BizHawk.Emulation.DiscSystem
/// <summary>
/// DiscStructure.Session 1 of the disc, since that's all thats needed most of the time.
/// </summary>
public DiscStructure.Session Session1 { get { return Structure.Sessions[1]; } }
public DiscStructure.Session Session1 => Structure.Sessions[1];
/// <summary>
/// The name of a disc. Loosely based on the filename. Just for informational purposes.

View File

@ -8,10 +8,7 @@ namespace BizHawk.Emulation.DiscSystem
{
public string PhysicalPath
{
get
{
return physicalPath;
}
get => physicalPath;
set
{
physicalPath = value;