<分区>
我这里有个小问题。我在 ASP.NET MVC 的 Controller 中使用以下语句:
using (var fileStream = File.Create(path))
{
stream.CopyTo(fileStream);
}
我收到以下错误:
'Controller.File(byte[], string)' is a method, which is not valid in the given context
我的 Controller 继承的父 Controller 类中似乎有一个名为 File 的函数。
我如何告诉编译器这里的 File 是类而不是函数?