2013-04-25 01:21:00 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2013-05-03 12:44:51 +00:00
|
|
|
|
namespace Mustache
|
2013-04-25 01:21:00 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the information about a key that was found.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class KeyFoundEventArgs : EventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of a KeyFoundEventArgs.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="key">The fully-qualified key.</param>
|
2016-03-21 17:41:46 +00:00
|
|
|
|
/// <param name="isExtension">Specifies whether the key was found within triple curly braces.</param>
|
|
|
|
|
internal KeyFoundEventArgs(string key, object value, bool isExtension)
|
2013-04-25 01:21:00 +00:00
|
|
|
|
{
|
|
|
|
|
Key = key;
|
2014-07-14 19:14:55 +00:00
|
|
|
|
Substitute = value;
|
2013-04-25 01:21:00 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the fully-qualified key.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Key { get; private set; }
|
|
|
|
|
|
2016-03-21 17:41:46 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets whether the key appeared within triple curly braces.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsExtension { get; private set; }
|
|
|
|
|
|
2013-04-25 01:21:00 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the object to use as the substitute.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public object Substitute { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|