System.Collections.ArrayList.ArrayListAdapter.SetRange C# (CSharp) Method

SetRange() public method

public SetRange ( int index, ICollection c ) : void
index int
c ICollection
return void
			public override void SetRange(int index, ICollection c) 
			{
				if (c == null) 
				{
					throw new ArgumentNullException("c");
				}

				if (index < 0 || index + c.Count > m_Adaptee.Count) 
				{
					throw new ArgumentOutOfRangeException("index");
				}

				int x = index;

				foreach (object value in c) 
				{
					m_Adaptee[x++] = value;
				}
			}