You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
763 B
38 lines
763 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Threading.Tasks; |
|
using System.Windows.Forms; |
|
using System.Xml.Serialization; |
|
using System.Xml; |
|
using System.IO; |
|
|
|
namespace xmlDeserWin |
|
{ |
|
[XmlRoot("user_list")] |
|
public class UserList |
|
{ |
|
public UserList() { } |
|
[XmlAttribute("user")] |
|
public List<User> Items { get; set; } |
|
} |
|
[XmlType("user")] |
|
public class User |
|
{ |
|
private string Id; |
|
|
|
public string id |
|
{ |
|
get { return Id; } |
|
set { Id = value; } |
|
} |
|
//[XmlAttribute("name")] |
|
private string Name; |
|
|
|
public string name |
|
{ |
|
get { return Name; } |
|
set { Name = value; } |
|
} |
|
} |
|
}
|
|
|