Class VisualBasicCompiler
- Namespace
- Ecng.Compilation.Roslyn
- Assembly
- Ecng.Compilation.Roslyn.dll
Represents a Visual Basic compiler that supports compiling source files into an assembly.
public class VisualBasicCompiler : RoslynCompiler, ICompiler
- Inheritance
-
VisualBasicCompiler
- Implements
- Inherited Members
- Extension Methods
Constructors
VisualBasicCompiler()
Initializes a new instance of the VisualBasicCompiler class.
public VisualBasicCompiler()
Properties
IsCaseSensitive
Gets a value indicating whether the language is case sensitive.
public override bool IsCaseSensitive { get; }
Property Value
IsReferencesSupported
Gets a value indicating whether the compiler supports external references.
public override bool IsReferencesSupported { get; }
Property Value
IsTabsSupported
Gets a value indicating whether the compiler supports tabs in the source code.
public override bool IsTabsSupported { get; }
Property Value
Methods
Create(string, IEnumerable<string>, PortableExecutableReference[], CancellationToken)
Creates a new compilation instance.
protected override Compilation Create(string assemblyName, IEnumerable<string> sources, PortableExecutableReference[] references, CancellationToken cancellationToken)
Parameters
assemblyName
stringThe name of the assembly.
sources
IEnumerable<string>The source code files as strings.
references
PortableExecutableReference[]A collection of references.
cancellationToken
CancellationToken
Returns
- Compilation
Microsoft.CodeAnalysis.Compilation