Emulation.DiscSystem - cleanup - use expression body
This commit is contained in:
parent
eb4acc0090
commit
2afa05d2c7
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -8,10 +8,7 @@ namespace BizHawk.Emulation.DiscSystem
|
|||
{
|
||||
public string PhysicalPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return physicalPath;
|
||||
}
|
||||
get => physicalPath;
|
||||
set
|
||||
{
|
||||
physicalPath = value;
|
||||
|
|
Loading…
Reference in New Issue