Ejemplo n.º 1
0
 public override void SerializeContent(XmlWriter writer)
 {
     Guard.ArgumentNotNull(writer, "writer");
     writer.WriteAttributeString(ParameterElement.NamePropertyName, this.Name);
     writer.WriteAttributeIfNotEmpty(ParameterElement.TypeNamePropertyName, this.TypeName);
     ValueElementHelper.SerializeParameterValueElement(writer, this.Value, false);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Write the contents of this element to the given <see cref="XmlWriter"/>.
 /// </summary>
 /// <remarks>The caller of this method has already written the start element tag before
 /// calling this method, so deriving classes only need to write the element content, not
 /// the start or end tags.</remarks>
 /// <param name="writer">Writer to send XML content to.</param>
 public override void SerializeContent(XmlWriter writer)
 {
     writer.WriteAttributeIfNotEmpty(TypeNamePropertyName, this.TypeName);
     foreach (var valueElement in this.Values)
     {
         ValueElementHelper.SerializeParameterValueElement(writer, valueElement, true);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Write the contents of this element to the given <see cref="XmlWriter"/>.
 /// </summary>
 /// <remarks>The caller of this method has already written the start element tag before
 /// calling this method, so deriving classes only need to write the element content, not
 /// the start or end tags.</remarks>
 /// <param name="writer">Writer to send XML content to.</param>
 public override void SerializeContent(XmlWriter writer)
 {
     Guard.ArgumentNotNull(writer, "writer");
     writer.WriteAttributeString(NamePropertyName, Name);
     ValueElementHelper.SerializeParameterValueElement(writer, Value, false);
 }