Files
Umbraco-CMS/src/umbraco.MacroEngines/RazorDynamicNode/PredicateBuilder.cs
Shannon Deminick 5213d6de5c renamed IContentStore to IPublishedContentStore. Migrating DynamicNode to Umbraco.Core and cleaning up it's supported codebase.
Starting writing a few unit tests for the new DynamicNode codebase. Will of course leave the original DynamicNode stuff in its
current place for backwards compatibility but will deprecate many of the classes which will call the new ones.
2012-08-17 04:27:47 +06:00

29 lines
931 B
C#

using System.Linq.Expressions;
namespace System.Linq.Dynamic
{
[Obsolete("This class is superceded by Umbraco.Core.ExpressionExtensions")]
public static class PredicateBuilder
{
public static Expression<Func<T, bool>> True<T>()
{
return Umbraco.Core.ExpressionExtensions.True<T>();
}
public static Expression<Func<T, bool>> False<T>()
{
return Umbraco.Core.ExpressionExtensions.False<T>();
}
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> expr1,
Expression<Func<T, bool>> expr2)
{
return Umbraco.Core.ExpressionExtensions.Or<T>(expr1, expr2);
}
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> expr1,
Expression<Func<T, bool>> expr2)
{
return Umbraco.Core.ExpressionExtensions.And<T>(expr1, expr2);
}
}
}