Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
list copy test
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { List<int> l = new List<int>(); for (int i = 0; i < 10; i++) l.Add(i); Console.WriteLine("Before remove index 5"); foreach(var item in l) Console.WriteLine(item); remove(l, 5); Console.WriteLine("After remove index 5"); foreach(var item in l) Console.WriteLine(item); } public static void remove(List<int> l, int idx) { l.RemoveAt(idx); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
1
foreach
iMacPro
Find 20 business days prior to today's date c#
Full join
Exception-Nikhil
Trabbd
nguoi
Palindrome Number
Test date/time bug
Please log in to post a comment.