protected IList CreateCollectionFromMapping(CollectionMapping mapping, int count) { if (mapping.IsArray) { return(TypeCreator.CreateFixedCollection(mapping.Type, count)); } if (MappingRegistry.TypeMapper.TypeAnalyzer.IsGenericCollection(mapping.Type)) { return(TypeCreator.CreateList(mapping.CollectionType)); } return((IList)TypeCreator.Instantiate(mapping.Type)); }