Write XML Attribute Int - CSharp System.Xml

CSharp examples for System.Xml:XML Attribute

Description

Write XML Attribute Int

Demo Code


using System.Xml;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;/* ww w  .j  av a2 s  .  c  o  m*/

public class Main{
        public static void WriteAttributeInt(this XmlWriter writer, string name , int value)
        {
            writer.WriteStartAttribute(name);
            writer.WriteValue(value);
            writer.WriteEndAttribute();
        }
}

Related Tutorials