public override string ToString() { return(String.Format("{0}, {1}", new object[] { _position.ToString(), _size.ToString() })); }
/// <summary> /// Converts this <see cref="Rect2i"/> to a string with the given <paramref name="format"/>. /// </summary> /// <returns>A string representation of this rect.</returns> public string ToString(string format) { return($"{_position.ToString(format)}, {_size.ToString(format)}"); }