コード例 #1
0
 public ConcreteArchetypeDTO(
     int id,
     string name,
     bool isPureArchetype,
     DeckDTO cardsInArchetype,
     IEnumerable <ArchetypeStatisticsDTO> statistics)
 {
     Id               = id;
     Name             = name ?? throw new ArgumentNullException(nameof(name));
     IsPureArchetype  = isPureArchetype;
     CardsInArchetype = cardsInArchetype ?? throw new ArgumentNullException(nameof(cardsInArchetype));
     Statistics       = statistics ?? throw new ArgumentNullException(nameof(statistics));
 }
 public BanlistWithStatisticsDTO(
     string name,
     string format,
     DateTime releaseDate,
     DeckDTO bannedCards,
     DeckDTO limitedCards,
     DeckDTO semiLimitedCards,
     IEnumerable <BanlistStatisticsDTO> statistics)
 {
     Name             = name ?? throw new ArgumentNullException(nameof(name));
     Format           = format ?? throw new ArgumentNullException(nameof(format));
     ReleaseDate      = releaseDate;
     BannedCards      = bannedCards ?? throw new ArgumentNullException(nameof(bannedCards));
     LimitedCards     = limitedCards ?? throw new ArgumentNullException(nameof(limitedCards));
     SemiLimitedCards = semiLimitedCards ?? throw new ArgumentNullException(nameof(semiLimitedCards));
     Statistics       = statistics ?? throw new ArgumentNullException(nameof(statistics));
 }