// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class Program { public static void Dump(object[][] result) { Console.WriteLine("outer: " + result.Length); foreach(object[] resultslice in result) { Console.WriteLine(" inner: " + resultslice.Length); } } public static void Main(string[] args) { string[][] a1 = new string[][] { new string[] { "A", "B", "C" }, new string[] { "X", "Y", "Z" } }; Dump(a1); string[][] a2 = new string[][] { new string[] { "A", "B", "C" }, new string[] { "X", "Y" }, new string[] { "1"} }; Dump(a2); } } }