2013-04-18 23:26:58 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace mustache
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the information needed to handle a missing key.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MissingKeyEventArgs : EventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of a MissingKeyEventArgs.
|
|
|
|
|
/// </summary>
|
2013-04-19 12:56:21 +00:00
|
|
|
|
/// <param name="key">The fully-qualified key.</param>
|
|
|
|
|
/// <param name="missingMember">The part of the key that could not be found.</param>
|
|
|
|
|
internal MissingKeyEventArgs(string key, string missingMember)
|
2013-04-18 23:26:58 +00:00
|
|
|
|
{
|
2013-04-19 12:56:21 +00:00
|
|
|
|
Key = key;
|
|
|
|
|
MissingMember = missingMember;
|
2013-04-18 23:26:58 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2013-04-19 12:56:21 +00:00
|
|
|
|
/// Gets the fully-qualified key.
|
2013-04-18 23:26:58 +00:00
|
|
|
|
/// </summary>
|
2013-04-19 12:56:21 +00:00
|
|
|
|
public string Key { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the part of the key that could not be found.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string MissingMember { get; private set; }
|
2013-04-18 23:26:58 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets whether to use the substitute.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Handled { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the object to use as the substitute.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public object Substitute { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|