using System.Collections;
using System.Collections.Generic;
public static void Main() {
var array = new ArrayList() { 1, "texto" };
foreach (var item in array) {
((string)array[1]).Contains("t");
var list = new List<int>() { 1, };
foreach (var item in list) total += item;