using System.Collections.Generic;
public static void Main()
string[] strArray = {"a", "b", "c"};
List<int> list = new List<int>();
IEnumerable<Char> charList = new List<char> (){ 'a', 'b' };
object[] objList = { str, strArray, 2.3, list, charList, 2 };
foreach (var t in objList)
Console.WriteLine("{0,-15} IsArray = {1}", t.GetType(), t.IsArray());