public ScenarioInterpreterForType GetInterpreterForType(Type t)
        {
            if (!_interpreterCache.ContainsKey(t))
                _interpreterCache[t] = new ScenarioInterpreterForType(t, _extensionMethodHandler.GetExtensionMethodsFor(t), this);

            return _interpreterCache[t];
        }
예제 #2
0
        public ScenarioInterpreterForType GetInterpreterForType(Type t)
        {
            if (!_interpreterCache.ContainsKey(t))
            {
                var typeWrapper = _contextTypeFactory.GetWrapper(t);
                _interpreterCache[t] = new ScenarioInterpreterForType(typeWrapper,
                                                                      this,
                                                                      _parameterConverter);
            }
            // _interpreterCache[t] = new ScenarioInterpreterForType(t, _extensionMethodHandler.GetExtensionMethodsFor(t), this);

            return(_interpreterCache[t]);
        }
        public ScenarioInterpreterForType GetInterpreterForType(Type t)
        {
            if (!_interpreterCache.ContainsKey(t))
            {
                var typeWrapper = _contextTypeFactory.GetWrapper(t);
                _interpreterCache[t] = new ScenarioInterpreterForType(typeWrapper,
                                                                      this,
                                                                      _parameterConverter);
            }
            // _interpreterCache[t] = new ScenarioInterpreterForType(t, _extensionMethodHandler.GetExtensionMethodsFor(t), this);

            return _interpreterCache[t];
        }