C# Класс Microsoft.IronStudio.Core.DlrClassifierProvider

Implements classification of text by using a ScriptEngine which supports the TokenCategorizer service. Languages should subclass this type and override the Engine property. They should then export the provider using MEF indicating the content type which it is applicable to. Languages can also export this under the the content type "DlrCode" and can then override the ContentType property to indicate a specific content type which they provide tokenization for. This specific content type should be a sub-type of DlrCode. This enables the languages to dynamicly register their own content type but statically export the provider.
Наследование: IDlrClassifierProvider
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
FillCategoryMap IClassificationType>.Dictionary

Открытые методы

Метод Описание
GetClassifier ( ITextBuffer buffer ) : IClassifier

Приватные методы

Метод Описание
FillCategoryMap ( IClassificationTypeRegistryService registry ) : IClassificationType>.Dictionary

Описание методов

GetClassifier() публичный Метод

public GetClassifier ( ITextBuffer buffer ) : IClassifier
buffer ITextBuffer
Результат IClassifier