Exemplo n.º 1
0
 protected override void AppendAttributes(StringBuilder b)
 {
     b.AppendFormat(" type='{0}'", _length.ToCode());
 }
Exemplo n.º 2
0
        public string GetDateTimeFormatPattern(FormatLength length)
        {
            var node = this.Select(new NodePathEntry("dateTimeFormats"),
                                   new NodePathEntry("dateTimeFormatLength", new LdmlAttributeValue(LdmlAttribute.Type, length.ToCode()))
                                   );

            if (node == null)
            {
                return(null);
            }
            return(node.Select("dateTimeFormat", "pattern").GetText());
        }