Hopefully a simple question
I need to serialise an inherted class, in this example iProperty inherits from 'PropertyDescriptor'. In order to achieve this iProperty needs a parameter less constructor, and the base class has no such constructor, If I attempt to add a construtor I am told the base class does not contain a method thats takes 0 arguments which is correct. How do I get round this issue.
Thanks.
Example
public class iProperty : PropertyDescriptor
{
private string propName;
private object propValue;
// Need Parameterless Construtor ?
public iProperty(string pName, object pValue)
: base(pName, new Attribute[] { })
{
propName = pName;
propValue = pValue;
}
}
PropertyDescriptorclass (or at least its constructor).iProperty, with a methodGetiPropertyor equivalent that creates the iProperty object based on the serialized info. There's no working around the constructor requirement.