I know I could have an attribute but that\'s more work than I want to go to... and not general enough.
I want to do something like
class Whotsit
{
FYI, I tried to serialize it to see if, by chance, that contains the property name, but no luck.
Non-working code below:
Whotsit w = new Whotsit();
XmlSerializer xs = new XmlSerializer(w.TestProp.GetType());
TextWriter sw = new StreamWriter(@"c:\TestProp.xml");
xs.Serialize(sw, w.TestProp);
sw.Close();