KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a base class with an abstract property: public abstract int ID {get;set;} now, I have a subclass, which is XmlSerialized. So, it has: [XmlElement("something")] public override int ID { get { //... } set { //... } } I cannot move the XmlElement attribute to baseclass, since every subclass will have a different xml elementname. Now, when I deserialize this class I get the following error: Member 'Subclass.ID' hides inherited member 'BaseClass.ID', but has different custom attributes. What can I do?
Tags (comma-separated)
Save Edits
Cancel