using System.Collections.Generic; namespace Mustache { /// /// Defines a tag that renders its content if all preceding if and elif tags. /// internal sealed class ElseTagDefinition : ContentTagDefinition { /// /// Initializes a new instance of a ElseTagDefinition. /// public ElseTagDefinition() : base("else", true) { } /// /// Gets whether the tag only exists within the scope of its parent. /// protected override bool GetIsContextSensitive() { return true; } /// /// Gets the tags that indicate the end of the current tag's content. /// protected override IEnumerable GetClosingTags() { return new string[] { "if","eq","gt","gte","lt","lte" }; } /// /// Gets the parameters that are used to create a new child context. /// /// The parameters that are used to create a new child context. public override IEnumerable GetChildContextParameters() { return new TagParameter[0]; } } }