Refactor image set largest property

I can't believe I did not see that...
This commit is contained in:
Harry 2014-10-07 21:26:28 -04:00
parent c8612f8510
commit 2ee49a61a3

View File

@ -17,10 +17,7 @@ public Uri Largest
{ {
get get
{ {
if (Small == null) return null; return Mega ?? ExtraLarge ?? Large ?? Medium ?? Small;
if (Medium == null) return Small;
if (Large == null) return Medium;
return ExtraLarge != null ? (Mega ?? ExtraLarge) : Large;
} }
} }