I have Property
public Array Data
{
get;
set;
}
But I can't serialize it since type Array is not serializable, any Idea how can I achieve this,
Thanx
You need to give it more information; the simplest it to give it the typed array - for example, with a string array:
public string[] Data {get;set;}
It may (unsure) be possible to send untyped single-dimenstion arrays using [XmlArray] and [XmlArrayItem] to specify the type - but by the time you've done that a typed array would have been easier. I doubt that multi-dimensional arrays are supported.
Object[] then? or a collection like List<Object>??XmlSerializer is a typed serializer; it cannot [de]serialize data unless the type is predictable. There are some ways around this if you simply have a restricted set of types, rather than "anything". If the type is actually known to be one of a finite set of possibilities, then please say