C# Класс mustache.ConditionTagDefinition

Defines a tag that conditionally prints its content.
Наследование: ContentTagDefinition
Показать файл Открыть проект

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

Метод Описание
ShouldCreateSecondaryGroup ( TagDefinition definition ) : bool

Gets whether the given tag's generator should be used for a secondary (or substitute) text block.

ShouldGeneratePrimaryGroup ( object>.Dictionary arguments ) : bool

Gets whether the primary generator group should be used to render the tag.

Защищенные методы

Метод Описание
ConditionTagDefinition ( string tagName ) : System

Initializes a new instance of a ConditionTagDefinition.

GetChildTags ( ) : IEnumerable

Gets the tags that come into scope within the context of the current tag.

GetParameters ( ) : IEnumerable

Gets the parameters that can be passed to the tag.

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

Метод Описание
isConditionSatisfied ( object condition ) : bool

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

ConditionTagDefinition() защищенный Метод

Initializes a new instance of a ConditionTagDefinition.
protected ConditionTagDefinition ( string tagName ) : System
tagName string The name of the tag.
Результат System

GetChildTags() защищенный Метод

Gets the tags that come into scope within the context of the current tag.
protected GetChildTags ( ) : IEnumerable
Результат IEnumerable

GetParameters() защищенный Метод

Gets the parameters that can be passed to the tag.
protected GetParameters ( ) : IEnumerable
Результат IEnumerable

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

Gets whether the given tag's generator should be used for a secondary (or substitute) text block.
public ShouldCreateSecondaryGroup ( TagDefinition definition ) : bool
definition TagDefinition The tag to inspect.
Результат bool

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

Gets whether the primary generator group should be used to render the tag.
public ShouldGeneratePrimaryGroup ( object>.Dictionary arguments ) : bool
arguments object>.Dictionary The arguments passed to the tag.
Результат bool