public void Evaluate(int spreadMax) { if (!Attribute.IsChanged) { return; } Name.SliceCount = spreadMax; Value.SliceCount = spreadMax; Parent.SliceCount = spreadMax; NodeType.SliceCount = spreadMax; for (int i = 0; i < spreadMax; i++) { string name; string value; XElement parent; XmlNodeType nodeType; XMLNodes.Split(Attribute[i], out name, out value, out parent, out nodeType); Name[i] = name; Value[i] = value; Parent[i] = parent; NodeType[i] = nodeType; } }
public void Evaluate(int spreadMax) { if (!Element.IsChanged) { return; } Name.SliceCount = spreadMax; Value.SliceCount = spreadMax; DeepValue.SliceCount = spreadMax; Childs.SliceCount = spreadMax; Attributes.SliceCount = spreadMax; DocumentRoot.SliceCount = spreadMax; Parent.SliceCount = spreadMax; Next.SliceCount = spreadMax; NodeType.SliceCount = spreadMax; for (int i = 0; i < spreadMax; i++) { string name; string value; string deepvalue; ISpread <XElement> childs; ISpread <XAttribute> attributes; XElement documentRoot; XElement parent; XElement next; XmlNodeType nodeType; XMLNodes.Split(Element[i], out name, out value, out deepvalue, out childs, out attributes, out documentRoot, out parent, out next, out nodeType); Name[i] = name; Value[i] = value; DeepValue[i] = deepvalue; Childs[i] = childs; Attributes[i] = attributes; DocumentRoot[i] = documentRoot; Parent[i] = parent; Next[i] = next; NodeType[i] = nodeType; } }