C# Класс Projbook.Core.Snippet.SnippetExtractorFactory

Creates the proper snippet exctractor depending on the pattern.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateExtractor ( SnippetExtractionRule snippetExtractionRule ) : ISnippetExtractor

Creates a new instance of ISnippetExtractor according to the snippet extraction rule.

SnippetExtractorFactory ( DirectoryInfoBase extensionDirectory ) : System

Initializes a new instance of SnippetExtractorFactory.

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

Метод Описание
LoadExtensions ( ) : void

Loads extensions.

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

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

Creates a new instance of ISnippetExtractor according to the snippet extraction rule.
public CreateExtractor ( SnippetExtractionRule snippetExtractionRule ) : ISnippetExtractor
snippetExtractionRule SnippetExtractionRule The snippet extraction rule.
Результат ISnippetExtractor

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

Initializes a new instance of SnippetExtractorFactory.
public SnippetExtractorFactory ( DirectoryInfoBase extensionDirectory ) : System
extensionDirectory System.IO.Abstractions.DirectoryInfoBase The extension directory.
Результат System