16 lines
440 B
C#
16 lines
440 B
C#
|
namespace System.Web.Mvc {
|
|||
|
using System;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
internal sealed class ActionMethodDispatcherCache : ReaderWriterCache<MethodInfo,ActionMethodDispatcher> {
|
|||
|
|
|||
|
public ActionMethodDispatcherCache() {
|
|||
|
}
|
|||
|
|
|||
|
public ActionMethodDispatcher GetDispatcher(MethodInfo methodInfo) {
|
|||
|
return FetchOrCreateItem(methodInfo, () => new ActionMethodDispatcher(methodInfo));
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|