Пример #1
0
        public static string AsXml(Conta resource)
        {
            var stringWriter = new StringWriter();

            new XmlSerializer(resource.GetType()).Serialize(stringWriter, resource);
            return(stringWriter.ToString());
        }