internal XdtoDataObject(XdtoObjectType type, XdtoDataObject owner, XdtoProperty property) { _type = type; _owner = owner; _owningProperty = property; _sequence = new XdtoSequence(this, true); FillPropertiesFromType(); }
private void WriteXdtoSequence(XmlWriterImpl xmlWriter, XdtoSequence sequence) { foreach (var element in sequence) { if (element == null) { // TODO: надо ли что-нибудь делать??? } else if (element is XdtoSequenceStringElement) { xmlWriter.WriteText((element as XdtoSequenceStringElement).Text); } else if (element is XdtoSequenceValueElement) { var obj = element as XdtoSequenceValueElement; WriteXml(xmlWriter, obj.Value, obj.Property.LocalName, obj.Property.NamespaceURI, XmlTypeAssignmentEnum.Explicit, obj.Property.Form); } } }