예제 #1
0
        protected CategoryCountItem CreateItem(IDataReader dr, Dictionary <string, CategoryCountItem> categoryCounts)
        {
            var category = GetCategory(dr);
            var name     = GetName(dr);
            var value    = categoryCounts.GetValueOrDefault(category);

            return(CategoryCountItem.Create(value, category, name));
        }
 public static CategoryCountItem Create(CategoryCountItem categoryCountItem, string category, string name)
 {
     return(new CategoryCountItem()
     {
         Category = category,
         Count = categoryCountItem?.Count,
         Extent = categoryCountItem?.Extent,
         Name = name
     });
 }