linux-packaging-mono/mcs/class/System.Web.Mvc3/Mvc/ControllerDescriptorCache.cs

15 lines
399 B
C#
Raw Normal View History

namespace System.Web.Mvc {
using System;
internal sealed class ControllerDescriptorCache : ReaderWriterCache<Type, ControllerDescriptor> {
public ControllerDescriptorCache() {
}
public ControllerDescriptor GetDescriptor(Type controllerType, Func<ControllerDescriptor> creator) {
return FetchOrCreateItem(controllerType, creator);
}
}
}