title: C#: Creating a new FileInfo in a directory that you have the DirectoryInfo of
body: <p>I was just wondering when you have for example:</p>
  
  <pre><code>var dir = new DirectoryInfo(@"C:\Temp");
  </code></pre>
  
  <p>Is there an easier/clearer way to add a new file to that directory than this?</p>
  
  <pre><code>var file = new FileInfo(Path.Combine(dir.FullName, "file.ext"));
  </code></pre>
  
  <p>I'm thinking I can probably just make an extension method or something, but curious if something already exists that can't see here... I mean the <code>DirectoryInfo</code> does have <code>GetFiles()</code> method for example.</p>