2011-02-26 16:15:45 -13:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
using System.Web.Compilation;
|
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
using System.Collections;
|
2011-07-21 11:27:34 -12:00
|
|
|
|
using System.Linq.Expressions;
|
2015-01-30 19:04:39 +11:00
|
|
|
|
using Umbraco.Core;
|
|
|
|
|
|
using Umbraco.Core.Cache;
|
2011-02-26 16:15:45 -13:00
|
|
|
|
|
|
|
|
|
|
namespace umbraco.MacroEngines
|
|
|
|
|
|
{
|
2012-08-17 06:22:51 +06:00
|
|
|
|
|
|
|
|
|
|
[Obsolete("This class has been superceded by Umbraco.Core.Dynamics.ExtensionMethodFinder")]
|
2011-02-26 16:15:45 -13:00
|
|
|
|
public static class ExtensionMethodFinder
|
|
|
|
|
|
{
|
2012-08-17 06:22:51 +06:00
|
|
|
|
public static MethodInfo FindExtensionMethod(Type thisType, object[] args, string name, bool argsContainsThis)
|
|
|
|
|
|
{
|
2015-01-30 19:04:39 +11:00
|
|
|
|
var runtimeCache = ApplicationContext.Current != null ? ApplicationContext.Current.ApplicationCache.RuntimeCache : new NullCacheProvider();
|
|
|
|
|
|
|
|
|
|
|
|
return Umbraco.Core.Dynamics.ExtensionMethodFinder.FindExtensionMethod(runtimeCache, thisType, args, name, argsContainsThis);
|
2012-08-17 06:22:51 +06:00
|
|
|
|
}
|
2011-02-26 16:15:45 -13:00
|
|
|
|
}
|
|
|
|
|
|
}
|