Table of Contents

Class CSharpScriptProvider

Namespace
Alternet.Scripter.Roslyn
Assembly
Alternet.Scripter.v9.dll

Provides code generation for C# based on Microsoft Roslyn.

public class CSharpScriptProvider : RoslynScriptProvider, IDisposable
Inheritance
CSharpScriptProvider
Implements

Constructors

CSharpScriptProvider(IScriptHost, SourceCodeKind)

Initializes a new instance of the CSharpScriptProvider class with specified IScriptHost.

Methods

AddGlobalCode(ProjectId, IList<IScriptGlobalItem>)
AddGlobalCode(IList<SyntaxTree>, IList<IScriptGlobalItem>)
CreateScriptCompilation(IList<SyntaxTree>, IList<MetadataReference>)
CreateSubmission()
CreateWorkspace()
GenerateAssemblyInfo(string)

Generates an auto-code for the SDK-style version information.

GenerateAutoCode()

Generates an auto-code for the SDK-style project configuration.

GenerateExpressionCode(string, bool)
GenerateGlobalCode(IList<IScriptGlobalItem>)
GenerateGlobalItems(IList<IScriptGlobalItem>)

Generates code from given global items.

GenerateStaticUsing(IList<string>)
GetCompilationOptions()
GetGenericArgs(string)
GetGlobalFileName()
GetLanguageName()
GetParserOptions()
GetTypeName(Type)
ParseCode(IList<SyntaxTree>, string, string)
ParseDocument(Document)
ParseEmbeddedFiles(IList<SyntaxTree>, SyntaxTree, IList<string>)