コード例 #1
0
 protected override void AppendAttributes(StringBuilder b)
 {
     b.AppendFormat(" type='{0}'", _length.ToCode());
 }
コード例 #2
0
ファイル: CalendarInfo.cs プロジェクト: panost/ecl.Unicode
        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());
        }