Table of Contents

Class LanguageServices

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v10.dll

Per language services provided by the form designer environment.

public static class LanguageServices
Inheritance
LanguageServices

Properties

Services

Gets a list of language specific services.

Methods

AddService(Language, LanguageService)

Adds a given service related to the specific language.

CreateCodeProvider(Language, IServiceProvider)

Creates an object that provides access to instances of code generator and code compiler.

CreateEventBindingService(Language, IServiceContainer, IFormDesignerDataSource, Func<NavigateToUserMethodRequestedEventArgs, bool>)

Creates an additional service for registering event handlers for component events.

CreateParser(Language, IServiceProvider, DesignerReferencedAssemblies, IEnumerable<DesignerAssemblyResources>, DesignerImportedNamespaces, IDesignedComponentAssemblyProvider)

Creates an object used to provide syntax analysis for the form designer code and generates a parsed representation.

GetAssemblyResourcesParameters(Language, out string, out string)

Determines parameters of the assembly resources.

GetDesignedClassName(Language, string)

Determines the name of the form designer class.

GetResourceFileName(Language, string, string)

Determines a name of the resource file.

GetRootNamespaceFromProjectFile(Language, string)

Determines root namespace for the given project.

GetSupportedLanguage(string)

Determines supported language by given name. Reports an error if not supported.

LoadNearbyAssemblies(string[])

Tries to load the most relevant assemblies for a given assembly name list.

PatchSourceCode(Language, string)

Performs post-processing of the source code.

PreprocessCodeDomBeforeSaving(Language, CodeTypeDeclaration)

Provides a some preprocessing of source code before saving form's content.

ReportError(string)

Reports an error during the language service process.

SaveDifferencesInCode(Language, IFormDesignerDataSource, IFormDesignerLoader, IFormDesignerControl)

Determines the changes in the form source code and saves them if necessary.

StripHeaderComment(Language, string)

Removes the leading header comment.

TryGetSupportedLanguage(string)

Determines supported language by given name.

TryGetSupportedLanguageByExtension(string)

Determines supported language by given file extension.