uQuery: Standardising method signatures, from List<T> to IEnumerable<T>

This commit is contained in:
Hendy
2012-06-11 09:57:48 -01:00
parent 9456abe36e
commit a9cd8aec79
7 changed files with 25 additions and 35 deletions

View File

@@ -3,6 +3,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.XPath;
using umbraco.cms.businesslogic.datatype;
using System.Linq;
namespace umbraco.editorControls.XPathCheckBoxList
{
@@ -139,7 +140,7 @@ namespace umbraco.editorControls.XPathCheckBoxList
try
{
if (uQuery.GetNodesByXPath(xPath).Count >= 0)
if (uQuery.GetNodesByXPath(xPath).Count() >= 0)
{
isValid = true;
}

View File

@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.XPath;
@@ -119,7 +120,7 @@ namespace umbraco.editorControls.XPathDropDownList
try
{
if (uQuery.GetNodesByXPath(xPath).Count >= 0)
if (uQuery.GetNodesByXPath(xPath).Count() >= 0)
{
isValid = true;
}