using System; using Mustache.Properties; 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. /// The context where the placeholder was found. internal VariableFoundEventArgs(string name, string alignment, string formatting, Context[] context) { Name = name; Alignment = alignment; Formatting = formatting; 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 the context where the placeholder was found. /// public Context[] Context { get; private set; } } }