Table of Contents

Method RegisterNamespaces

Namespace
Alternet.Editor.Roslyn
Assembly
Alternet.Editor.Roslyn.v10.dll

RegisterNamespaces(string, string[], string, string)

Registers global namespaces.

public static void RegisterNamespaces(string extension, string[] namespaces, string projectName = null, string rootNamespace = null)

Parameters

extension string

Project's default file extension, like ".cs".

namespaces string[]

List of global namespaces.

projectName string

Project's name to process.

rootNamespace string

Optional root namespace

RegisterNamespaces(IScriptEdit, string[], string)

Registers global namespaces.

public static void RegisterNamespaces(this IScriptEdit edit, string[] namespaces, string rootNamespace = null)

Parameters

edit IScriptEdit

IScriptEdit that contains the source code.

namespaces string[]

List of global namespaces.

rootNamespace string

Optional root namespace