How to return a List<object> in WCF
问题 I have my WCF service returning data both in XML and JSON format. One functios has to return a List, because I don't know which class will be used to fill this list. So, I have my class: public class WrapHome { public WrapHome() { } private string p_TITOLO { get; set; } public string TITOLO { get { return p_TITOLO.ToString(); } set { p_TITOLO = value; } } private List<object> p_CHART { get; set; } public List<object> CHART { get { return p_CHART; } set { p_CHART = value; } } } and my WCF