System.Collections.ArrayList.AddRange(System.Collections.ICollection)

Here are the examples of the csharp api class System.Collections.ArrayList.AddRange(System.Collections.ICollection) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

200 Examples 7

1. Example

Project: ContinuousTests
Source File: SettingsDialogBase.cs
public void AddRange( params SettingsPage[] pages )
			{
				this.InnerList.AddRange( pages );
			}

2. Example

Project: ContinuousTests
Source File: SettingsDialogBase.cs
public void AddRange( params SettingsPage[] pages )
			{
				this.InnerList.AddRange( pages );
			}

3. Example

Project: ContinuousTests
Source File: SettingsDialogBase.cs
public void AddRange( params SettingsPage[] pages )
			{
				this.InnerList.AddRange( pages );
			}

4. Example

Project: MapleShark
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
		{ InnerList.AddRange(bs); }

5. Example

Project: dp2
Source File: DTLPParam.cs
static int addr_buff(ArrayList aPackage,
			byte []baBuffer,
			int nLen)
		{
			// ???????????
			if (nLen == baBuffer.Length)
				aPackage.AddRange(baBuffer);
			else 
			{
				char [] buffer = new char [nLen];
				Array.Copy(baBuffer, 0, buffer, 0 , nLen);
				aPackage.AddRange(buffer);
			}

			return 0;
		}

6. Example

Project: prologdotnet
Source File: AMAssemblyCache.cs
public override void LoadAssemblyFiles(ArrayList a)
        {
            _assemblyFiles.AddRange(a);
        }

7. Example

Project: prologdotnet
Source File: AMAssemblyCache.cs
public override void LoadNamespaces(ArrayList n)
        {
            _namespaces.AddRange(n);
        }

8. Example

Project: prologdotnet
Source File: AMAssemblyCache.cs
public override void Load(ArrayList namespaces, ArrayList assemblyFiles)
        {
            if (_namespaces != null && _namespaces.Count > 0)
            {
                _namespaces.AddRange(namespaces);
            }
            _assemblyFiles.AddRange(assemblyFiles);
        }

9. Example

Project: NSMB-Editor
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
		{ InnerList.AddRange(bs); }

10. Example

Project: DotNetSiemensPLCToolBoxLibrary
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
		{ InnerList.AddRange(bs); }

11. Example

Project: MdxClient
Source File: MdxParameterCollection.cs
public void AddRange(MdxParameter[] values)
        {
            if (null != values)
            {
                _items.AddRange(values);
            }
        }

12. Example

Project: MdxClient
Source File: MdxParameterCollection.cs
public override void AddRange(Array values)
        {
            if (null != values)
            {
                _items.AddRange(values);
            }
        }

13. Example

Project: NosDB
Source File: NosDataParameterCollection.cs
public override void AddRange(Array values)
        {
            this._list.AddRange(values);
        }

14. Example

Project: NosDB
Source File: DatabaseStateTransferManager.cs
private ICollection GetBucketsForStateTransfer(IDistribution distribution)
        {
            ArrayList bucketList = new ArrayList();
            if (distribution != null)
            {
                try
                {
                    bucketList.AddRange(distribution.GetBucketsForShard(context.LocalShardName));
                }
                catch (Exception) { }
            }
            return bucketList;
        }

15. Example

Project: NCache
Source File: ClientConfigManager.cs
public static void AvailableNIC(Hashtable nic)
        {
            if (nic != null)
            {
                ipAddresses.AddRange(nic.Keys);
            }
        }

16. Example

Project: tesvsnip
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
        {
            InnerList.AddRange(bs);
        }

17. Example

Project: tesvsnip
Source File: DropSink.cs
public void RefreshObjects()
        {
            toBeRefreshed.AddRange(SourceModels);
            var tlv = SourceListView as TreeListView;
            if (tlv == null)
                SourceListView.RefreshObjects(toBeRefreshed);
            else
                tlv.RebuildAll(true);

            var tlv2 = ListView as TreeListView;
            if (tlv2 == null)
                ListView.RefreshObject(TargetModel);
            else
                tlv2.RebuildAll(true);
        }

18. Example

Project: falloutsnip
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
        {
            InnerList.AddRange(bs);
        }

19. Example

Project: falloutsnip
Source File: DropSink.cs
public void RefreshObjects()
        {
            toBeRefreshed.AddRange(SourceModels);
            var tlv = SourceListView as TreeListView;
            if (tlv == null)
                SourceListView.RefreshObjects(toBeRefreshed);
            else
                tlv.RebuildAll(true);

            var tlv2 = ListView as TreeListView;
            if (tlv2 == null)
                ListView.RefreshObject(TargetModel);
            else
                tlv2.RebuildAll(true);
        }

20. Example

Project: fomm
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
    {
      InnerList.AddRange(bs);
    }

21. Example

Project: core
Source File: SortableCollection.cs
public virtual void AddRange(SortableCollection<T> collection)
        {
            InnerList.AddRange(collection);
        }

22. Example

Project: core
Source File: SortableCollection.cs
public virtual void AddRange(T[] collection)
        {
            InnerList.AddRange(collection);
        }

23. Example

Project: NBTExplorer
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
		{ InnerList.AddRange(bs); }

24. Example

Project: logwizard
Source File: DropSink.cs
public void RefreshObjects() {

            toBeRefreshed.AddRange(this.SourceModels);
            TreeListView tlv = this.SourceListView as TreeListView;
            if (tlv == null)
                this.SourceListView.RefreshObjects(toBeRefreshed);
            else
                tlv.RebuildAll(true);

            TreeListView tlv2 = this.ListView as TreeListView;
            if (tlv2 == null)
                this.ListView.RefreshObject(this.TargetModel);
            else
                tlv2.RebuildAll(true);
        }

25. Example

Project: JustUO
Source File: Town.cs
public ArrayList BuildFinanceList()
        {
            ArrayList list = new ArrayList();

            List<VendorList> vendorLists = this.VendorLists;

            for (int i = 0; i < vendorLists.Count; ++i)
                list.AddRange(vendorLists[i].Vendors);

            List<GuardList> guardLists = this.GuardLists;

            for (int i = 0; i < guardLists.Count; ++i)
                list.AddRange(guardLists[i].Guards);

            return list;
        }

26. Example

Project: JustUO
Source File: MyRunUO.cs
public void CollectGuilds(DateTime endTime)
        {
            this.m_List.AddRange(Guild.List.Values);
            this.m_Stage = Stage.DumpingGuilds;
            this.m_Index = 0;
        }

27. Example

Project: JustUO
Source File: PersistableObjectCollection.cs
public void AddRange(PersistableObject[] col)
        {
            this.InnerList.AddRange(col);
        }

28. Example

Project: Bulk-Crap-Uninstaller
Source File: DropSink.cs
public void RefreshObjects() {

            toBeRefreshed.AddRange(this.SourceModels);
            TreeListView tlv = this.SourceListView as TreeListView;
            if (tlv == null)
                this.SourceListView.RefreshObjects(toBeRefreshed);
            else
                tlv.RebuildAll(true);

            TreeListView tlv2 = this.ListView as TreeListView;
            if (tlv2 == null)
                this.ListView.RefreshObject(this.TargetModel);
            else
                tlv2.RebuildAll(true);
        }

29. Example

Project: ME3Explorer
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
		{ InnerList.AddRange(bs); }

30. Example

Project: ME3Explorer
Source File: PActivityList.cs
public void AddRange(PActivityList list) {
			InnerList.AddRange(list);
		}

31. Example

Project: ME3Explorer
Source File: PCameraList.cs
public void AddRange(PCameraList list) {
			InnerList.AddRange(list);
		}

32. Example

Project: ME3Explorer
Source File: PLayerList.cs
public void AddRange(PLayerList list) {
			InnerList.AddRange(list);
		}

33. Example

Project: ME3Explorer
Source File: PNodeList.cs
public void AddRange(PNodeList list) {
			InnerList.AddRange(list);
		}

34. Example

Project: referencesource
Source File: arraylist.cs
public override void AddRange(ICollection c) {
                lock(_root) {
                    _list.AddRange(c);
                }
            }

35. Example

Project: logging-log4net
Source File: RemotingAppenderTest.cs
public void LogEvents(LoggingEvent[] events)
			{
				m_events.AddRange(events);
			}

36. Example

Project: virtual-reality
Source File: lq.cs
public ArrayList getAllObjects ()
        {
            int i;
            int bincount = divx * divy * divz;

            ArrayList returnList = new ArrayList();
            for (i=0; i<bincount; i++)
            {
                returnList.AddRange(bins[i].clientList);//, func, clientQueryState));
            }
            returnList.AddRange(other.clientList);//, func, clientQueryState));
            return returnList;
        }

37. Example

Project: nHydrate
Source File: RowEntryCollection.cs
public override void AddRange(ICollection list)
        {
            internalList.AddRange(list);
        }

38. Example

Project: ncmb_unity
Source File: NCMBAddOperation.cs
public INCMBFieldOperation MergeWithPrevious (INCMBFieldOperation previous)
		{
			if (previous == null) {
				return this;
			}

			if ((previous is NCMBDeleteOperation)) {
				return new NCMBSetOperation (this.objects);
			}

			if ((previous is NCMBSetOperation)) {
				object value = ((NCMBSetOperation)previous).getValue ();
				if ((value is IList)) {
					ArrayList result = new ArrayList ((IList)value);
					result.AddRange (this.objects);
					return new NCMBSetOperation (result);
				}
				throw new  InvalidOperationException ("You can only add an item to a List.");
			}

			if ((previous is NCMBAddOperation)) {
				ArrayList result = new ArrayList (((NCMBAddOperation)previous).objects);
				result.AddRange (this.objects);
				return new NCMBAddOperation (result);
			}
			throw new  InvalidOperationException ("Operation is invalid after previous operation.");
		}

39. Example

Project: ncmb_unity
Source File: NCMBAddOperation.cs
public object Apply (object oldValue, NCMBObject obj, string key)
		{
			if (oldValue == null) {
				return this.objects;
			}
			if ((oldValue is IList)) {
				ArrayList result = new ArrayList ((IList)oldValue);
				result.AddRange (this.objects);
				return result;
			}
			throw new  InvalidOperationException ("Operation is invalid after previous operation.");
		}

40. Example

Project: RatioMaster.NET
Source File: NSTraceListeners.cs
public void AddRange(TraceListener[] listeners)
        {
            _listeners.AddRange(listeners);
        }

41. Example

Project: RatioMaster.NET
Source File: NSTraceListeners.cs
public void AddRange(NSTraceListeners listeners)
        {
            _listeners.AddRange(listeners);
        }

42. Example

Project: RatioMaster.NET
Source File: NSTraceListeners.cs
public void AddRange(TraceListenerCollection listeners)
        {
            _listeners.AddRange(listeners);
        }

43. Example

Project: CommunityServer
Source File: SqlQuery.cs
public SqlQuery GroupBy(params string[] columns)
        {
            groups.AddRange(columns);
            return this;
        }

44. Example

Project: CommunityServer
Source File: SqlQuery.cs
public SqlQuery GroupBy(params int[] positins)
        {
            groups.AddRange(positins);
            return this;
        }

45. Example

Project: ServiceBusExplorer
Source File: DynamicCustomTypeDescriptor.cs
private void GenericPropertyValueUIHandler(ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList itemList)
        {
            var cpd = propDesc as CustomPropertyDescriptor;
            if (cpd != null &&
                cpd.StateItems != null)
            {
                itemList.AddRange(cpd.StateItems as ICollection);
            }
        }

46. Example

Project: pgina
Source File: RemotingAppenderTest.cs
public void LogEvents(LoggingEvent[] events)
			{
				m_events.AddRange(events);
			}

47. Example

Project: Be.HexEditor
Source File: ByteCollection.cs
public void AddRange(byte[] bs)
		{ InnerList.AddRange(bs); }

48. Example

Project: Aspose.Pdf-for-.NET
Source File: RemoveGraphicsObjects.cs
public static void Run()
        {
            // ExStart:RemoveGraphicsObjects
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_Operators();

            Document doc = new Document(dataDir+ "RemoveGraphicsObjects.pdf");
            Page page = doc.Pages[2];
            OperatorCollection oc = page.Contents;

            // Used path-painting operators
            Operator[] operators = new Operator[] {
                    new Operator.Stroke(),
                    new Operator.ClosePathStroke(),
                    new Operator.Fill()
            };

            ArrayList list = new ArrayList();
            foreach (Operator op in operators)
            {
                OperatorSelector os = new OperatorSelector(op);
                oc.Accept(os);
                list.AddRange(os.Selected);
            }

            oc.Delete(list);
            doc.Save(dataDir+ "No_Graphics_out.pdf");
            // ExEnd:RemoveGraphicsObjects
        }

49. Example

Project: AberrantSMPP
Source File: Pdu.cs
protected void AddTlvBytes(ref ArrayList pdu)
		{
			ArrayList tlvs = _tlvTable.GenerateByteEncodedTlv();
			foreach(byte[] tlv in tlvs)
			{
				#if DEBUG
				StringBuilder sb = new StringBuilder("\nAdding TLV bytes\n");
				for(int i = 0; i < tlv.Length; i++) 
				{
					sb.Append(tlv[i].ToString("X").PadLeft(2, '0'));
					sb.Append(" ");
				}
				sb.Append("\n");
				Console.WriteLine(sb);
				
				#endif
				
				pdu.AddRange(tlv);
			}
		}

50. Example

Project: runuo
Source File: Town.cs
public ArrayList BuildFinanceList()
		{
			ArrayList list = new ArrayList();

			List<VendorList> vendorLists = VendorLists;

			for ( int i = 0; i < vendorLists.Count; ++i )
				list.AddRange( vendorLists[i].Vendors );

			List<GuardList> guardLists = GuardLists;

			for ( int i = 0; i < guardLists.Count; ++i )
				list.AddRange( guardLists[i].Guards );

			return list;
		}