Beispiel #1
0
        public static string GetXml(T value)
        {
            TMemoryBuffer trans = new TMemoryBuffer();
            TXmlProtocol  prot  = new TXmlProtocol(trans);

            Proto <T> .Write(prot, value);

            trans.Flush();
            return(Encoding.UTF8.GetString(trans.GetBuffer()));
        }