Beispiel #1
0
 /// <summary>
 /// Generates VB text from a statement and writes it to a text writer with the given options.
 /// </summary>
 /// <param name="statement">The statement to generate text from.</param>
 /// <param name="writer">The text writer to write to.</param>
 /// <param name="options">The generation options.</param>
 public static void GenerateVBTo(this CodeStatement statement, TextWriter writer, CodeGeneratorOptions options)
 {
     using (var provider = new VBCodeProvider())
     {
         provider.GenerateCodeFromStatement(statement, writer, options);
     }
 }