Core.Xml - document + public XPathVariable
This commit is contained in:
@@ -2,11 +2,27 @@
|
||||
|
||||
namespace Umbraco.Core.Xml
|
||||
{
|
||||
internal class XPathVariable
|
||||
/// <summary>
|
||||
/// Represents a variable in an XPath query.
|
||||
/// </summary>
|
||||
/// <remarks>The name must be <c>foo</c> in the constructor and <c>$foo</c> in the XPath query.</remarks>
|
||||
public class XPathVariable
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the variable.
|
||||
/// </summary>
|
||||
public string Name { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the variable.
|
||||
/// </summary>
|
||||
public string Value { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="XPathVariable"/> class with a name and a value.
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="value"></param>
|
||||
public XPathVariable(string name, string value)
|
||||
{
|
||||
Name = name;
|
||||
|
||||
Reference in New Issue
Block a user