这种事情可能吗:
public static void DoThis(file aFile){
//Blah blah blah
}
最佳答案
这取决于你需要用它做什么:)
选项包括:
- 路径(字符串)
- 内容(字符串或字节[])
- 内容的一些复杂对象模型(您自己选择)
- 文件信息
- 文件流(或只是流)
- 某种读者/作家; TextReader、XmlWriter 等
关于c# - 发送文件作为方法参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4960288/