How to implement Xml Serialization with inherited classes in C#
- by liorafar
I have two classes : base class name Component and inheritd class named DBComponent
[Serializable]
public class Component
{
private string name = string.Empty;
private string description = string.Empty;
}
[Serializable]
public class DBComponent : Component
{
private List<string> spFiles = new List<string>();
//…