VisualBasicCompiler
Ecng.Compilation.Roslyn
Represents a Visual Basic compiler that supports compiling source files into an assembly.
继承自: RoslynCompiler
构造函数
VisualBasicCompiler
public VisualBasicCompiler()
visualBasicCompiler = VisualBasicCompiler()
Initializes a new instance of the VisualBasicCompiler class.
属性
IsCaseSensitive
public override bool IsCaseSensitive { get; }
value = visualBasicCompiler.IsCaseSensitive
Gets a value indicating whether the language is case sensitive.
IsReferencesSupported
public override bool IsReferencesSupported { get; }
value = visualBasicCompiler.IsReferencesSupported
Gets a value indicating whether the compiler supports external references.
IsTabsSupported
public override bool IsTabsSupported { get; }
value = visualBasicCompiler.IsTabsSupported
Gets a value indicating whether the compiler supports tabs in the source code.
方法
Create
protected override Compilation Create(string assemblyName, IEnumerable<string> sources, PortableExecutableReference[] references, CancellationToken cancellationToken)
result = visualBasicCompiler.Create(assemblyName, sources, references, cancellationToken)
Creates a new compilation instance.
- assemblyName
- The name of the assembly.
- sources
- The source code files as strings.
- references
- A collection of references.
- cancellationToken
- CancellationToken
返回值: Compilation