title: How Can I Use File class in an MVC Controller in ASP.Net?
body: <p>I have a little problem here. I'm using the following statement in a controller in ASP.NET MVC: </p>
  
  <pre><code>using (var fileStream = File.Create(path))
  {
        stream.CopyTo(fileStream);
  }
  </code></pre>
  
  <p>I get the following error: </p>
  
  <pre><code>'Controller.File(byte[], string)' is a method, which is not valid in the given context  
  </code></pre>
  
  <p>It seems that there's a function named File in the parent Controller class that my controller inherits from. </p>
  
  <p>How can I tell the compiler that File here is a class not a function? </p>