private string GetDimensionsString()
{
return "[" + string.Join(",", Dimensions.Select(x =>
{
if (x.LowerBound.HasValue)
{
if (x.Size.HasValue)
return FormatDimensionBounds(x.LowerBound.Value, x.Size.Value);
return x.LowerBound.Value + "...";
}
if (x.Size.HasValue)
return FormatDimensionBounds(0, x.Size.Value);
return string.Empty;
})) + "]";
}