Class CSharpLanguageService
- Namespace
- Alternet.FormDesigner.WinForms.Roslyn
- Assembly
- Alternet.FormDesigner.Roslyn.v10.dll
Represents a class for support C# code manipulation, used in the Alternet.FormDesigner control.
public class CSharpLanguageService : LanguageService
- Inheritance
-
CSharpLanguageService
Constructors
- CSharpLanguageService(Language)
Initializes a new instance of the
CSharpLanguageService
class with specified language.
Methods
- CreateCodeProvider(IServiceProvider)
Creates an object that provides access to instances of code generator and code compiler.
- CreateEventBindingService(IServiceContainer, IFormDesignerDataSource, Func<NavigateToUserMethodRequestedEventArgs, bool>)
Creates an additional service for registering event handlers for component events.
- CreateParser(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(out string, out string)
Determines parameters of the assembly resources.
- GetDesignedClassName(string)
Determines the name of the form designer class.
- GetResourceFileName(string, string)
Determines a name of the resource file.
- GetRootNamespaceFromProjectFile(string)
Determines root namespace for the given project.
- Init()
Initializes this service and registers it in the service collection.
- PatchSourceCode(string)
Performs post-processing of the source code.
- SaveDifferencesInCode(IFormDesignerDataSource, IFormDesignerLoader, IFormDesignerControl)
Determines the changes in the form source code and saves them if necessary.
- StripHeaderComment(string)
Removes the leading header comment.