示例#1
0
 /// <summary>
 /// Generates VB text from a type declaration and writes it to a text writer with the given options.
 /// </summary>
 /// <param name="typeDeclaration">The type declaration 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 CodeTypeDeclaration typeDeclaration, TextWriter writer, CodeGeneratorOptions options)
 {
     using (var provider = new VBCodeProvider())
     {
         provider.GenerateCodeFromType(typeDeclaration, writer, options);
     }
 }