Пример #1
0
 /// <summary>
 /// Generates VB text from an expression and writes it to a text writer with the given options.
 /// </summary>
 /// <param name="expression">The expression 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 CodeExpression expression, TextWriter writer, CodeGeneratorOptions options)
 {
     using (var provider = new VBCodeProvider())
     {
         provider.GenerateCodeFromExpression(expression, writer, options);
     }
 }