public void ReadFrom(IXdrReader reader)
        {
            MessageType = (MessageType)reader.ReadInt();
            switch (MessageType)
            {
            case MessageType.Call:
                CallBody = new CallBody(reader);
                break;

            case MessageType.Reply:
                ReplyBody = new ReplyBody(reader);
                break;
            }
        }
        public void WriteTo(IXdrWriter writer)
        {
            writer.Write((int)MessageType);
            switch (MessageType)
            {
            case MessageType.Call:
                CallBody?.WriteTo(writer);
                break;

            case MessageType.Reply:
                ReplyBody?.WriteTo(writer);
                break;
            }
        }