using System; namespace RecrownedAthenaeum.DataTypes { public class Resolution : IComparable { public int Width, Height; public Resolution(int width, int height) { Width = width; Height = height; } public Resolution() { } public int CompareTo(Resolution other) { return Area() - other.Area(); } public override string ToString() { return Width + "x" + Height; } public int Area() { return Width * Height; } } }