C# Класс Mustache.ConditionTagDefinition

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

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

Метод Описание
GetChildContextParameters ( ) : IEnumerable

Gets the parameters that are used to create a new child context.

ShouldCreateSecondaryGroup ( Mustache.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

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

Gets the parameters that are used to create a new child context.
public GetChildContextParameters ( ) : IEnumerable
Результат IEnumerable

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 ( Mustache.TagDefinition definition ) : bool
definition Mustache.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