none
Suggestion:Why not SectionType(SectionMarkValues)? and so for all such... RRS feed

  • Question

  • when constructing a new sectPr, the SectionType constructor is not quite fluent to code... why not provide a constructor like SectionType(SectionMarkValues)? then i could construct a sectPr like: ... new SectionProperties(new SectionType(SectionmarkValues.Even));

    now i have to write like this:
     SectionType st = new SectionType();
     st.Val = SectionMarkValues.Continuous ;
     partRoot.Append(new SectionProperties(st));
    ... seems kind of noodle...

    I think that all such leaf classes shall be extended to support evaluate attributes in the constructor,for most of these leaf classes are just certain kind of simple tag-value pairs...
    Monday, October 12, 2009 3:51 PM