private IFormattable ( string format, IFormatProvider provider ) : string | ||
format | string | |
provider | IFormatProvider | |
Résultat | string |
string IFormattable.ToString(string format, IFormatProvider provider)
{
if (Rectangle2D.IsNullOrEmpty(this))
{
return "Empty";
}
return string.Format(provider, "{0:" + format + "},{1:" + format + "},{2:" + format + "},{3:" + format + "}", new object[] { this.Left, this.Bottom, this.Right, this.Top });
}
}