C#字符串必须通过文本框过滤??? [英] C# String must be filtered Through textbox???

查看:70
本文介绍了C#字符串必须通过文本框过滤???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在File.Move中使用字符串时遇到问题。重命名文件的操作。这是我用一个值加载字符串的语句:

Hi, I am having trouble using a string in a "File.Move" operation to rename a file. Here is the statement in which I load the string with a value:

展开 | 选择 | Wrap | 行号

推荐答案

为什么文件名会以bytes?
Why is the filename coming in as bytes?



为什么文件名以字节形式出现?
Why is the filename coming in as bytes?



我通过网络流捕获它。

I am capturing it over a network stream.


你在那里设置了一个断点,看看是否有任何搞笑字节[]中的字符?
Have you set a breakpoint in there to see if there are any funny characters coming in the byte[]?


这篇关于C#字符串必须通过文本框过滤???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆