public static DateClassificationCategory Get(DateClassificator key) { lock (_lock) { if (!_cats.TryGetValue(key, out var val)) { _cats.Add(key, val = new DateClassificationCategory(key)); } return(val); } }
public DateClassificationCategory(DateClassificator key) { this.Classificator = key; }