System.Windows.Browser.ManagedObject.ListOps.Splice C# (CSharp) Method

Splice() public method

public Splice ( int startIndex ) : void
startIndex int
return void
			public void Splice (int startIndex, params object[] args)
			{
				if (col.IsFixedSize)
					throw new NotSupportedException ();
				double count = col.Count - startIndex;

				if (args != null && args.Length > 0)
					count = (double)args[0];

				for (; count > 0; count--)
					col.RemoveAt (startIndex);

				if (args != null && args.Length > 0)
					for (int i = 1; i < args.Length; i++)
						col.Insert (startIndex + i - 1, args[i]);
			}
		}