Files
ZelWiki/TightWiki.Engine.Function/OrdinalParameter.cs
2025-01-22 23:31:03 +08:00

29 lines
731 B
C#

namespace TightWiki.Engine.Function
{
public class OrdinalParameter
{
public string Value { get; set; }
/// <summary>
/// Has been matched to a prototype parameter?
/// </summary>
public bool IsMatched { get; set; } = false;
/// <summary>
/// If matched to a prototype parameter, this is the name of the parameter.
/// </summary>
public string ParameterName { get; set; } = string.Empty;
public OrdinalParameter(string value)
{
Value = value;
}
public void AssociateWithPrototypeParam(string paramName)
{
IsMatched = true;
ParameterName = paramName;
}
}
}