Beispiel #1
0
 /// <summary>
 /// Generates VB text from a namespace and writes it to a text writer with the given options.
 /// </summary>
 /// <param name="namespace">The namespace 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 CodeNamespace @namespace, TextWriter writer, CodeGeneratorOptions options)
 {
     using (var provider = new VBCodeProvider())
     {
         provider.GenerateCodeFromNamespace(@namespace, writer, options);
     }
 }