using System; namespace Mustache { /// /// Holds the information descibing a variable that is found in a template. /// public class VariableFoundEventArgs : EventArgs { /// /// Initializes a new instance of a VariableFoundEventArgs. /// /// The key that was found. /// The alignment that will be applied to the substitute value. /// The formatting that will be applied to the substitute value. /// Specifies whether the variable was found within triple curly braces. /// The context where the placeholder was found. internal VariableFoundEventArgs(string name, string alignment, string formatting, bool isExtension, Context[] context) { Name = name; Alignment = alignment; Formatting = formatting; IsExtension = isExtension; Context = context; } /// /// Gets or sets the key that was found. /// public string Name { get; set; } /// /// Gets or sets the alignment that will be applied to the substitute value. /// public string Alignment { get; set; } /// /// Gets or sets the formatting that will be applied to the substitute value. /// public string Formatting { get; set; } /// /// Gets or sets whether variable was found within triple curly braces. /// public bool IsExtension { get; set; } /// /// Gets the context where the placeholder was found. /// public Context[] Context { get; } } }