Ejemplo n.º 1
0
        public void Account_Can_Serialize()
        {
            var acct = new Account();
            var stringBuilder = new StringBuilder();

            var writer = XmlWriter.Create(stringBuilder);
            var xmlSerializer = new XmlSerializer(typeof(Account));
            xmlSerializer.Serialize(writer, acct);
        }
Ejemplo n.º 2
0
 public DGAccount(Account source)
 {
     Source = source;
     User = DGUser.GetUser(source.User);
     m_visible = true;
 }