REFACTOR: Reformat code.

This commit is contained in:
2017-12-19 20:33:03 +00:00
parent 77edc7c91c
commit e6f6ace80b
704 changed files with 82627 additions and 83641 deletions

View File

@@ -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;
}
}
}
}