Exemple #1
0
        private static IType GetItemType(ITypeResolver typeResolver, Type type)
        {
            CollectionAdapterDescription adapterDescription = CollectionAdapterDescription.GetAdapterDescription(type);
            IType type1 = null;

            if (adapterDescription != null)
            {
                type1 = typeResolver.GetType(adapterDescription.ItemType);
            }
            return(type1);
        }
Exemple #2
0
 public static CollectionAdapterDescription GetAdapterDescription(System.Type type)
 {
     return(CollectionAdapterDescription.GetAdapterDescription(type, null));
 }