Exemplo n.º 1
0
        /// <summary>
        /// Defines the entry point of the application.
        /// </summary>
        /// <param name="args">The arguments.</param>
        static void Main(string[] args)
        {
            //do nothing

            ID_31_TRANS_REQUEST TransferReq = new ID_31_TRANS_REQUEST
            {
                LoadAdr        = "10111",
                DestinationAdr = "10211",
                CSTID          = "CST01"
            };



            testProtocol(TransferReq);

            byte[] arrayByte = new byte[TransferReq.CalculateSize()];
            TransferReq.WriteTo(new Google.Protobuf.CodedOutputStream(arrayByte));



            ID_31_TRANS_REQUEST TransferReqTemp = ID_31_TRANS_REQUEST.Parser.ParseFrom(arrayByte);
        }