Пример #1
0
        public static DateClassificationCategory Get(DateClassificator key)
        {
            lock (_lock)
            {
                if (!_cats.TryGetValue(key, out var val))
                {
                    _cats.Add(key, val = new DateClassificationCategory(key));
                }

                return(val);
            }
        }
Пример #2
0
 public DateClassificationCategory(DateClassificator key)
 {
     this.Classificator = key;
 }