Hi
Is there similar to
[
XmlElement(ElementName = "MyCommand", Type = typeof(Command1))][
XmlElement(ElementName = "MyAnotherCommand", Type = typeof(Command2))] public Command[] Commands{}in DataMember
Thanks in advance
Javier
Hi
Is there similar to
[
XmlElement(ElementName = "MyCommand", Type = typeof(Command1))][
XmlElement(ElementName = "MyAnotherCommand", Type = typeof(Command2))] public Command[] Commands{}in DataMember
Thanks in advance
Javier
Similar attribute to [XmlElement, typeof] in DataMember
Balaji K
SamTran
Yes, there is. You can use
[
KnownType(typeof(Command1))][
KnownType(typeof(Command2))]when you work with XmlFormater and DataContract.
Indigo Cowboy