title: Assign value to variable using CodeDOM in C#
body: <p>I have used CodeDOM to generate C# code but I'm not able to generate code for following line of statement.</p>
  
  <pre><code>string FileName=String.Empty;
  FileName=Path.GetFileName(file1);
  </code></pre>
  
  <p>From above code I have written the code for first line using following snippet</p>
  
  <pre><code>using(CodeVariableDeclarationStatement strFileName = 
      new CodeVariableDeclarationStatement(typeof(string), "strFileName",
      new CodeTypeReferenceExpression("String.Empty"));) 
  </code></pre>
  
  <p>but not able to add code for second line using codeDOM. So please let me know how can I achive it.</p>