public static double Size(this Thickness thickness, Orientation orientation) { return(orientation.IsHorizontal() ? thickness.Width() : thickness.Height()); }