Advertisement
jerone

JSONtoClassWebservice

Mar 22nd, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1.     [DataContract]
  2.     public class TestCol : List<Test> { }
  3.  
  4.     [DataContract]
  5.     [KnownType(typeof(List<Test>))]
  6.     public class MainTest
  7.     {
  8.         [DataMember]
  9.         public TestCol Components { get; set; }
  10.     }
  11.  
  12.     public class Test
  13.     {
  14.         [DataMember]
  15.         public String Name { get; set; }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement