using System; namespace Mustache { /// /// Holds the information needed to handle a missing key. /// public class KeyNotFoundEventArgs : EventArgs { /// /// Initializes a new instance of a KeyNotFoundEventArgs. /// /// The fully-qualified key. /// The part of the key that could not be found. /// Specifies whether the key appears within triple curly braces. internal KeyNotFoundEventArgs(string key, string missingMember, bool isExtension) { Key = key; MissingMember = missingMember; IsExtension = isExtension; } /// /// Gets the fully-qualified key. /// public string Key { get; } /// /// Gets the part of the key that could not be found. /// public string MissingMember { get; } /// /// Gets whether the key appeared within triple curly braces. /// public bool IsExtension { get; } /// /// Gets or sets whether to use the substitute. /// public bool Handled { get; set; } /// /// Gets or sets the object to use as the substitute. /// public object Substitute { get; set; } } }