कल रात मैंने सपना देखा था कि निम्नलिखित असंभव था। लेकिन उसी सपने में, एसओ से किसी ने मुझे अन्यथा कहा। इसलिए मैं यह जानना चाहूंगा कि क्या इसे परिवर्तित System.Arrayकरना संभव हैList
Array ints = Array.CreateInstance(typeof(int), 5);
ints.SetValue(10, 0);
ints.SetValue(20, 1);
ints.SetValue(10, 2);
ints.SetValue(34, 3);
ints.SetValue(113, 4);
सेवा
List<int> lst = ints.OfType<int>(); // not working
Arrayवास्तव में जो है उसे डालना है, int[]ToList((int[])ints).ToList();