コード例 #1
0
ファイル: RuntimeServices.cs プロジェクト: w4x/boolangstudio
 private static object Dispatch(object target, string cacheKeyName, Type[] cacheKeyTypes, object[] args, DispatcherCache.DispatcherFactory factory)
 {
     Type targetType = (target as Type) ?? target.GetType();
     DispatcherKey key = new DispatcherKey(targetType, cacheKeyName, cacheKeyTypes);
     Dispatcher dispatcher = _cache.Get(key, factory);
     return dispatcher(target, args);
 }
コード例 #2
0
ファイル: RuntimeServices.cs プロジェクト: w4x/boolangstudio
 private static object Dispatch(object target, string cacheKeyName, object[] args, DispatcherCache.DispatcherFactory factory)
 {
     Type[] cacheKeyTypes = MethodResolver.GetArgumentTypes(args);
     return Dispatch(target, cacheKeyName, cacheKeyTypes, args, factory);
 }