public static JObject PointF(PointF pos) { var jObject = new JObject(); jObject.AddPropertyStringNullOfEmpty("X", pos.X.ToString()); jObject.AddPropertyStringNullOfEmpty("Y", pos.Y.ToString()); return(jObject); }
public static JObject IntArray(int[] array) { if (array == null || array.Length == 0) { return(null); } var jObject = new JObject(); for (int index = 0; index < array.Length; index++) { jObject.AddPropertyStringNullOfEmpty(index.ToString(), array[index].ToString()); } return(jObject); }