C# Класс mustache.CompoundGenerator

Builds text by combining the output of other generators.
Наследование: IGenerator
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddGenerator ( IGenerator generator ) : void

Adds the given generator.

AddGenerator ( TagDefinition definition, IGenerator generator ) : void

Adds the given generator, determining whether the generator should be part of the primary generators or added as an secondary generator.

AddStaticGenerators ( IEnumerable generators ) : void

Creates a StaticGenerator from the given value and adds it.

CompoundGenerator ( TagDefinition definition, ArgumentCollection arguments ) : System

Initializes a new instance of a CompoundGenerator.

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

Метод Описание
IGenerator ( KeyScope scope, TextWriter writer ) : void
addGenerator ( IGenerator generator, bool isSubGenerator ) : void

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

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

Adds the given generator.
public AddGenerator ( IGenerator generator ) : void
generator IGenerator The generator to add.
Результат void

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

Adds the given generator, determining whether the generator should be part of the primary generators or added as an secondary generator.
public AddGenerator ( TagDefinition definition, IGenerator generator ) : void
definition TagDefinition The tag that the generator is generating text for.
generator IGenerator The generator to add.
Результат void

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

Creates a StaticGenerator from the given value and adds it.
public AddStaticGenerators ( IEnumerable generators ) : void
generators IEnumerable The static generators to add.
Результат void

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

Initializes a new instance of a CompoundGenerator.
public CompoundGenerator ( TagDefinition definition, ArgumentCollection arguments ) : System
definition TagDefinition The tag that the text is being generated for.
arguments ArgumentCollection The arguments that were passed to the tag.
Результат System