private void SerializeParameter(XmlDictionaryWriter writer, PartInfo part, object graph) { writer.WriteStartElement(part.DictionaryName, part.DictionaryNamespace); if (graph == null) { writer.WriteStartAttribute(_xsiNilLocalName, _xsiNilNamespace); writer.WriteValue(true); writer.WriteEndAttribute(); } else { part.WriteValue(writer, graph); } writer.WriteEndElement(); }
private void SerializeParameter(XmlDictionaryWriter writer, PartInfo part, object graph) { writer.WriteStartElement(part.DictionaryName, part.DictionaryNamespace); if (graph == null) { writer.WriteStartAttribute(_xsiNilLocalName, _xsiNilNamespace); writer.WriteValue(true); writer.WriteEndAttribute(); } else part.WriteValue(writer, graph); writer.WriteEndElement(); }