Is it possible to achieve the following in c#...
for the class below...
public class Foo{
 public int BarId{get;set;}
 public string BarString{get;set;}
}
I want to achieve the following XML:
<Foo>
  <BarId BarString="something">123</BarId>
</Foo>