This is a migrated thread and some comments may be shown as answers.

[Solved] Missing 'CacheBase' after update to 2011-2

0 Answers 18 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas
Top achievements
Rank 1
Andreas asked on 23 Aug 2011, 09:28 AM
After Update from Telerik.Web.MVC Version 2010-2 to Telerik.Web.MVC Version 2011-2 for MVC 2 I get an error.
The error states that CacheBase (and GetOrCreate) cannot be found.
Thanks in advance for any help.

Herer is a code snippet:
using Telerik.Web.Mvc.Extensions;
using Telerik.Web.Mvc.Infrastructure;
class PropertyCache : CacheBase<string, PropertyInfo>
{
public PropertyInfo GetProperty(Type type, string key)
{
Guard.IsNotNull(type, "type");
Guard.IsNotNullOrEmpty(key, "key");
Func<PropertyInfo, bool> canInclude = property => CreateMatchingGet(property)();
return GetOrCreate(key, () => { return type.GetProperty(key, BindingFlags.Public | BindingFlags.Static | BindingFlags.GetProperty); });
}
Tags
General Discussions
Asked by
Andreas
Top achievements
Rank 1
Share this question
or