public TypeDescription GetDescription(Type type) { // get type description or cache it if the given type wasn't encountered before TypeDescription description; _descriptionsCache.TryGetValue(type, out description); if (description == null) { description = _reflector.DescribeInjections(type); _descriptionsCache.Add(type, description); } return(description); }
public TypeDescription GetTypeDescription(Type type) { return(_reflector.DescribeInjections(type)); }
public void ReflectorReturnsCorrectCtorInjectionPointForParamsCtor() { Assert.True(true); InjectionPoint injectionPoint = reflector.DescribeInjections(typeof(OneParameterConstructorInjectee)).ctor; Assert.True(injectionPoint is ConstructorInjectionPoint, "reflector-returned injectionPoint is ctor injectionPoint"); }