public static DispatcherCache ForType(Type type)
        {
            DispatcherCache cache = typeCache[type.TypeHandle];

            if (cache == null)
            {
                typeCache[type.TypeHandle] = cache = new DispatcherCache(type);
            }

            return(cache);
        }
Example #2
0
 public static Dispatcher For(Type implementation, MethodInfo multiMethod)
 {
     return(DispatcherCache.ForType(implementation).DispatcherFor(multiMethod));
 }