3356 {
3358 string text2 =
text;
3359 foreach (char c in text2)
3360 {
3361 switch (c)
3362 {
3363 case '#':
3364 FormatFixed(ref sb, ref number, nMaxDigits,
info._percentGroupSizes,
info.PercentDecimalSeparator,
info.PercentGroupSeparator);
3365 break;
3366 case '-':
3367 sb.Append(
info.NegativeSign);
3368 break;
3369 case '%':
3370 sb.Append(
info.PercentSymbol);
3371 break;
3372 default:
3373 sb.Append(c);
3374 break;
3375 }
3376 }
3377 }
static readonly string[] s_posPercentFormats
static readonly string[] s_negPercentFormats
static unsafe void FormatFixed(ref ValueStringBuilder sb, ref NumberBuffer number, int nMaxDigits, int[] groupDigits, string sDecimal, string sGroup)