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.
internal KeyNotFoundEventArgs(string key, string missingMember)
{
Key = key;
MissingMember = missingMember;
}
///
/// Gets the fully-qualified key.
///
public string Key { get; private set; }
///
/// Gets the part of the key that could not be found.
///
public string MissingMember { get; private set; }
///
/// 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; }
}
}