public static DispatcherCache ForType(Type type) { DispatcherCache cache = typeCache[type.TypeHandle]; if (cache == null) { typeCache[type.TypeHandle] = cache = new DispatcherCache(type); } return(cache); }
public static Dispatcher For(Type implementation, MethodInfo multiMethod) { return(DispatcherCache.ForType(implementation).DispatcherFor(multiMethod)); }