コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: AbstractUnitIndex.cs プロジェクト: mehabadi/HPMS
 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;
 }
コード例 #3
0
 public UnitIndexCategory(AbstractUnitIndexId unitIndexCategoryId, UnitIndexCategory parent, string name,
                          string dictionaryName)
     : base(unitIndexCategoryId, name, dictionaryName)
 {
     this.parent = parent;
 }