From c94eb4328fb4505625f99d647ed76d34df57617f Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 19 Mar 2013 17:34:28 -0100 Subject: [PATCH] Core.Xml - document + public XPathVariable --- src/Umbraco.Core/Xml/XPathVariable.cs | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/Xml/XPathVariable.cs b/src/Umbraco.Core/Xml/XPathVariable.cs index 348a2ee3ea..d5ecb928de 100644 --- a/src/Umbraco.Core/Xml/XPathVariable.cs +++ b/src/Umbraco.Core/Xml/XPathVariable.cs @@ -2,11 +2,27 @@ namespace Umbraco.Core.Xml { - internal class XPathVariable + /// + /// Represents a variable in an XPath query. + /// + /// The name must be foo in the constructor and $foo in the XPath query. + public class XPathVariable { - public string Name { get; set; } - public string Value { get; set; } + /// + /// Gets or sets the name of the variable. + /// + public string Name { get; private set; } + /// + /// Gets or sets the value of the variable. + /// + public string Value { get; private set; } + + /// + /// Initializes a new instance of the class with a name and a value. + /// + /// + /// public XPathVariable(string name, string value) { Name = name;