General refactor.

This commit is contained in:
2018-06-20 22:22:21 +01:00
parent dc1884f5d8
commit ec8b309670
93 changed files with 850 additions and 1015 deletions

View File

@@ -72,9 +72,7 @@ namespace DiscImageChef.CommonTypes
public override bool Equals(object obj)
{
if(!(obj is Partition)) return false;
return Equals((Partition)obj);
return obj is Partition partition && Equals(partition);
}
public override int GetHashCode()