public UnitIndex(AbstractUnitIndexId unitIndexId, UnitIndexCategory category, string name, string dictionaryName) : base(unitIndexId, name, dictionaryName) { if (category == null) { throw new ArgumentException("category is null"); } this.category = category; }
public AbstractUnitIndex(AbstractUnitIndexId abstractUnitIndexId, string name, string dictionaryName) { if (abstractUnitIndexId == null) { throw new ArgumentNullException("AbstractUnitIndexId"); } this.id = abstractUnitIndexId; if (string.IsNullOrWhiteSpace(name)) { throw new UnitIndexArgumentException("UnitIndex", "Name"); } this.name = name; if (string.IsNullOrWhiteSpace(name)) { throw new UnitIndexArgumentException("UnitIndex", "DictionaryName"); } this.dictionaryName = dictionaryName; }
public UnitIndexCategory(AbstractUnitIndexId unitIndexCategoryId, UnitIndexCategory parent, string name, string dictionaryName) : base(unitIndexCategoryId, name, dictionaryName) { this.parent = parent; }