コード例 #1
0
ファイル: Container.cs プロジェクト: Tony-Zhang03/Funq
        /* All ResolveImpl are essentially equal, except for the type of the factory
         * which is "hardcoded" in each implementation. This slight repetition of
         * code gives us a bit more of perf. gain by avoiding an intermediate
         * func/lambda to call in a generic way as we did before.
         */

        private Exception CreateResolveException <TService>(Exception ex)
        {
            return(new Exception(FunqResources.ResolutionException_Autowired(typeof(TService).FullName), ex));
        }