菜鸟送分:回车换行符替换问题
string tempStr = newStr.Replace((char)13, (char)0);
return tempStr.Replace((char)10, (char)0);
这样替换成了两个(char)0,怎样替换成一个(char)0?
我这样出错了:
string as = xxx
as=as.Replace((char)13&(char)10, (char)0);
错误提示:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1502: The best overloaded method match for 'string.Replace(char, char)' has some invalid arguments
return tempStr.Replace((char)10, (char)0);
这样替换成了两个(char)0,怎样替换成一个(char)0?
我这样出错了:
string as = xxx
as=as.Replace((char)13&(char)10, (char)0);
错误提示:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1502: The best overloaded method match for 'string.Replace(char, char)' has some invalid arguments
...全文
相关推荐
菜鸟浏览器
**源码使用说明**:随软件提供的"源码使用说明.txt"文件,很可能是为了帮助开发者或使用者理解软件的工作原理,包括如何编译、运行以及可能遇到的问题和解决方法。8.
菜鸟物流云平台商家授权.docx
正确地进行授权和管理TOKEN,可以避免因授权问题导致的服务中断,从而提高物流效率。商家在使用过程中遇到任何问题,应联系菜鸟物流云平台或ISV客服获取帮助。
从菜鸟到高手
**系统文件修复**:当遇到操作系统层面的问题时,往往需要对系统文件进行修复或替换。文档中提到的“Ntldr”、“DOSNet.inf”等文件都是Windows启动过程中的关键组件。
零分下载: Ubuntu12.10菜鸟使用手册(四)
用户可能会尝试替换该图标,但发现替换后图标会自动恢复原状。- **解决方案**:为了解决这一问题,可以利用Linux文件权限管理功能。具体步骤如下: 1.
lunix菜鸟指令大全
- 按下 `[A]`:在当前行尾部插入新的一行。 - 按下 `[R]`:替换模式,将光标所在位置的文字替换为新输入的文字。- **指令列命令模式**: - 按下 `[:/?]


