public static CT_StrVal Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_StrVal ctObj = new CT_StrVal(); ctObj.idx = XmlHelper.ReadUInt(node.Attributes["idx"]); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "v") ctObj.v = childNode.InnerText; } return ctObj; }
public CT_StrVal AddNewPt() { if (pt == null) pt = new List<CT_StrVal>(); CT_StrVal strVal = new CT_StrVal(); pt.Add(strVal); return strVal; }