Ejemplo n.º 1
0
        public BeginPostReport(int iteration,
                               IEnumerable <T> symbolSet)
        {
            if (symbolSet == null)
            {
                throw new ArgumentNullException(nameof(symbolSet));
            }

            SymbolSet = symbolSet.ToSortedSet().AsReadOnly();

            if (SymbolSet.AnyNull())
            {
                throw new ArgumentException(_AtLeastOneSymbolIsNullMessage, nameof(symbolSet));
            }

            Iteration = iteration;
        }
Ejemplo n.º 2
0
        public Union(IEnumerable <Entity> entities)
        {
            if (entities == null)
            {
                throw new ArgumentNullException(nameof(entities));
            }

            EntityCollection = new SortedSet <Entity>(entities).AsReadOnly();

            if (EntityCollection.AnyNull())
            {
                throw new ArgumentException("There are null items in collection.");
            }

            if (EntityCollection.Count < 2)
            {
                throw new ArgumentException("Union must have at least two items.");
            }

            _Variables = new Lazy <IReadOnlySet <Variable> >(() => CollectVariables(EntityCollection));
        }