how to create a method that adds to a arraylist c# code example Example: csharp create array list ArrayList a1 = new ArrayList(); a1.Add(1);