title: Programatically adding [XmlIgnore] attribute in c# for serialization
body: <p>Do anyone know how programatically add an <code>[XmlIgnore]</code> attribute to a class property in c#?</p>
  
  <p>I'd like to do this to have just one class with one or two fields to be serialized as I'd need at run time.</p>
  
  <p>Many thanks in advance.</p>