src/Misc/EFTools/DesignXmlCore/Refactoring/RefactoringPreviewGroup.cs
/// <summary>
///     Language services can be registered with specific file extensions.
///     This language service is used in the preview window to display the file with the appropriate syntax highlighting.
/// </summary>
/// <param name="fileExtension">This is the file extension for which you are registered a language service</param>
/// <param name="languageService">This is the guid of the language service.</param>
Language services can be registered with specific file extensions.
This language service is used in the preview window to display the file with the appropriate syntax highlighting.
Language services can be registered with specific file extensions . This language service is used in the preview window to display the file with the appropriate syntax highlighting .
public void RegisterLanguageService(string fileExtension, Guid languageService)
        {
            if (fileExtension != null
                && languageService != Guid.Empty)
            {
                Guid temp;
                if (!_languageServices.TryGetValue(fileExtension, out temp))
                {
                    _languageServices.Add(fileExtension, languageService);
                }
            }
        }
public void RegisterLanguageService ( string fileExtension , Guid languageService ) { if ( fileExtension != null && languageService != Guid . Empty ) { Guid temp ; if ( ! _languageServices . TryGetValue ( fileExtension , out temp ) ) { _languageServices . Add ( fileExtension , languageService ) ; } } }
Language services can be registered with specific file extensions.
Language services can be registered with specific file extensions .
fileExtension
string
This is the file extension for which you are registered a language service
This is the file extension for which you are registered a language service
languageService
Guid
This is the guid of the language service.
This is the guid of the language service .