Method RegisterNamespaces
RegisterNamespaces(string, string[], string, string)
Registers global namespaces.
public static void RegisterNamespaces(string extension, string[] namespaces, string projectName = null, string rootNamespace = null)
Parameters
extensionstringProject's default file extension, like ".cs".
namespacesstring[]List of global namespaces.
projectNamestringProject's name to process.
rootNamespacestringOptional root namespace
RegisterNamespaces(IScriptEdit, string[], string)
Registers global namespaces.
public static void RegisterNamespaces(this IScriptEdit edit, string[] namespaces, string rootNamespace = null)
Parameters
editIScriptEditIScriptEdit that contains the source code.
namespacesstring[]List of global namespaces.
rootNamespacestringOptional root namespace