using System; using System.Collections.Generic; using System.Xml.Serialization; namespace ServerExplorer.Code.DataTransfer { [Serializable] public class Server { [XmlAttribute] public string Name { get; set; } [XmlAttribute] public string Instance { get; set; } [XmlAttribute] public string Version { get; set; } private readonly List _users = new List(); [XmlArray] public List Users { get { return _users; } } private readonly List _databases = new List(); [XmlArray] public List Databases { get { return _databases; } } } }