//构造属性对 NodeProperty BuildProperty(string sProperty) { string[] strSeg; NodeProperty newProperty = null; strSeg = sProperty.Split(new char[] { ':' }); newProperty = new NodeProperty(strSeg[0], strSeg[1]); return(newProperty); }
//修改指定key的属性 void ModifyProperty(NodeProperty sProperty) { foreach (NodeProperty tP in Attribute) { if (tP.Key == sProperty.Key) { tP.Value = sProperty.Value; } } }