3
Answers

How do i covert a List colletion to XML?

petre ricardo

petre ricardo

14y
2.9k
1

hi freinds,
i have class User and i have a List Collection List<User> lstUsers that contains a list of User objects.
The user class contain the following:
public class User
{
      public property string userCode{get;set;}
      public property string userName{get;set;}
}
How do i convert the list collection to XML?
thanks
Answers (3)