mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -883,4 +883,4 @@ namespace DiscImageChef.CommonTypes
|
||||
FlashDrive
|
||||
#endregion Generic hard disks
|
||||
};
|
||||
}
|
||||
}
|
||||
2916
MediaTypeFromSCSI.cs
2916
MediaTypeFromSCSI.cs
File diff suppressed because it is too large
Load Diff
20
Partition.cs
20
Partition.cs
@@ -56,7 +56,10 @@ namespace DiscImageChef.CommonTypes
|
||||
/// <summary>Information that does not find space in this struct</summary>
|
||||
public string Description;
|
||||
/// <summary>LBA of last partition sector</summary>
|
||||
public ulong End { get { return Start + Length - 1; }}
|
||||
public ulong End
|
||||
{
|
||||
get { return Start + Length - 1; }
|
||||
}
|
||||
/// <summary>Name of partition scheme that contains this partition</summary>
|
||||
public string Scheme;
|
||||
|
||||
@@ -67,10 +70,8 @@ namespace DiscImageChef.CommonTypes
|
||||
|
||||
public override bool Equals(Object obj)
|
||||
{
|
||||
if(obj == null || !(obj is Partition))
|
||||
return false;
|
||||
else
|
||||
return Equals((Partition)obj);
|
||||
if(obj == null || !(obj is Partition)) return false;
|
||||
else return Equals((Partition)obj);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
@@ -80,11 +81,9 @@ namespace DiscImageChef.CommonTypes
|
||||
|
||||
public int CompareTo(Partition other)
|
||||
{
|
||||
if(Start == other.Start && End == other.End)
|
||||
return 0;
|
||||
if(Start == other.Start && End == other.End) return 0;
|
||||
|
||||
if(Start > other.Start || End > other.End)
|
||||
return 1;
|
||||
if(Start > other.Start || End > other.End) return 1;
|
||||
|
||||
return -1;
|
||||
}
|
||||
@@ -125,5 +124,4 @@ namespace DiscImageChef.CommonTypes
|
||||
return operand1.CompareTo(operand2) <= 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -54,5 +54,4 @@ using System.Reflection;
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
Reference in New Issue
Block a user