Beispiel #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("Code {0}", Code);
            sb.AppendLine();
            sb.AppendFormat("EnglishName {0}", EnglishName);
            sb.AppendLine();
            sb.AppendFormat("NativeName {0}", NativeName);
            sb.AppendLine();
            sb.AppendFormat("Symbol {0}", Symbol);
            sb.AppendLine();
            sb.AppendFormat("SignificantDecimalDigits {0}", SignificantDecimalDigits);
            sb.AppendLine();
            sb.AppendFormat("DecimalSeparator {0}", DecimalSeparator);
            sb.AppendLine();
            sb.AppendFormat("GroupSeparator {0}", GroupSeparator);
            sb.AppendLine();
            sb.Append("GroupSizes ");
            sb.Append("[");
            sb.Append(GroupSizes.ToDelimitedString());
            sb.Append("]");
            sb.AppendLine();
            sb.AppendFormat("PositivePattern {0}", PositivePattern);
            sb.AppendLine();
            sb.AppendFormat("NegativePattern {0}", NegativePattern);
            sb.AppendLine();
            sb.AppendFormat("Obsolete {0}", Obsolete);
            sb.AppendLine();
            return(sb.ToString());
        }
Beispiel #2
0
 private void printGroups(StringBuilder sb)
 {
     sb.AppendFormat("GroupSeparator {0}", GroupSeparator);
     sb.AppendLine();
     sb.Append("GroupSizes ");
     sb.Append("[");
     sb.Append(GroupSizes.ToDelimitedString());
     sb.Append("]");
     sb.AppendLine();
 }