Currently, I use the following C# code to populate a List<dynamic> object with a range of integers: var x = new List<dynamic>(); foreach (int i in Enumerable.Range(0, 100)) x.Add(i); Is there a more lucid way of doing this? I tried x = Enumerable.Range(0, 50).ToList(); and also x = Enumerable.Range(0, 50).ToList<dynamic>(); but both result in type […]
The post populating List<dynamic> from an Enumerable.Range or a List<int> appeared first on BlogoSfera.