B g

B g

  • NA
  • 1
  • 1.5k

DataContract definition problem

Jul 21 2011 7:13 AM
Hi,

I am trying to use the following class in a DataContract:

public class IDParams : Collection<ItemPair<string, List<int>>>
{
}

Do I have to mark it in any way? 

Following is the DataContract I used:
 [DataContract]
 public class Test
 {
     [DataMember]
     public IDParams Item{ get; set; }
 }

It raises a CommunicationException (Not found) :(
Any ideas how I can solve this?

Best regards,
Matthias

Answers (2)