Monday, 8 December 2014

How to add attributes to properties using XML in C#?



I want to add attributes to properties of a class. I want to store attributes into an XML and read from there. I don't want to add them manually like this,



[CategoryIndex("1", "StackPanel")]
[FrameAttribute("abc")]
[PositionAttribute("0","1","0")]
public string Name
{
get { return m_Name; }
set { m_Name = value; }
}


I want to store all the attributes in an XML file and read from there.. How to proceed ?


No comments:

Post a Comment