public static String ResolutionToCompatString(Size size) { return String.Format("{0},{1}", size.Width, size.Height); }