AddRange() public method

public AddRange ( IEnumerable messages ) : void
messages IEnumerable
return void
示例#1
0
        public void AddInitialMessages(Batch batch)
        {
            batch.Add(this);

            if (Stepthrough == null)
            {
                return;
            }


            if (Stepthrough.progress != null) batch.Add(Stepthrough.progress);
            batch.AddRange(Stepthrough.results.OfType<ClientMessage>());
            if (Stepthrough.next != null) batch.Add(Stepthrough.next);
        }
示例#2
0
        public void AddInitialMessages(Batch batch)
        {
            batch.Add(this);

            if (Stepthrough == null)
            {
                return;
            }


            if (Stepthrough.progress != null)
            {
                batch.Add(Stepthrough.progress);
            }
            batch.AddRange(Stepthrough.results.OfType <ClientMessage>());
            if (Stepthrough.next != null)
            {
                batch.Add(Stepthrough.next);
            }
        }