U4-1112 - Add Any() property to DynamicXml

This commit is contained in:
jeavonleopold
2012-10-31 10:47:04 +00:00
parent 8fff66dcb7
commit e502ce4ff9
2 changed files with 10 additions and 0 deletions

View File

@@ -190,6 +190,11 @@ namespace Umbraco.Core.Dynamics
return this.BaseElement.Elements().Count();
}
public bool Any()
{
return this.BaseElement.Elements().Any();
}
public bool IsNull()
{
return false;

View File

@@ -90,6 +90,11 @@ namespace umbraco.MacroEngines
return _inner.Count();
}
public bool Any()
{
return _inner.Any();
}
public bool IsNull()
{
return _inner.IsNull();