public void Upgrade(int version) { if (version == 0) { matchBy = ((width == -1 && height == -1) || (width == 0 && height == 0)) ? MatchByType.Wildcard : MatchByType.Resolution; } }
public void Upgrade(int version) { if (version == 0) { this.matchBy = (((this.width != -1) || (this.height != -1)) && ((this.width != 0) || (this.height != 0))) ? MatchByType.Resolution : MatchByType.Wildcard; } }