private static TypePropertyDescriptor GetOrAdd(IKernel kernel, ITypePropertyDescriptorCache cache, Type type,
     Action<PropertyInfo, ComponentModel> validatePropertyRegistration)
 {
     return cache.GetOrAdd(type, t => GetInjectableProperties(t, kernel, validatePropertyRegistration));
 }
コード例 #2
0
 private TypePropertyDescriptor GetOrAdd(Type type)
 {
     return(signaturePropertiesCache.GetOrAdd(type,
                                              t => new TypePropertyDescriptor(t, GetTypeSpecificSignatureProperties())));
 }
 private static TypePropertyDescriptor GetOrAdd(IKernel kernel, ITypePropertyDescriptorCache cache, Type type,
                                                Action <PropertyInfo, ComponentModel> validatePropertyRegistration)
 {
     return(cache.GetOrAdd(type, t => GetInjectableProperties(t, kernel, validatePropertyRegistration)));
 }