public static DLL <int> TakeInputList_DLL(bool isRandom = true, int MinContentLegth = 10, int MaxContentLength = 20, int MaxValue = 20) { if (!isRandom) { DLL <int> meList = new DLL <int>(); Console.WriteLine("Enter the number of elements in List"); int numbers = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter elements of List\n "); int i = 1; while (i <= numbers) { meList.AddAt(i++, Convert.ToInt32(Console.ReadLine())); } return(meList); } else { InputGenerator ioGenerator = new InputGenerator(); ioGenerator.MaxContentLength = MaxContentLength; ioGenerator.MinContentLength = MinContentLegth; var meList = InputStream.ReadFileAsDLL(ioGenerator.GenerateIntegerInputFile(MaxValue)); return(meList); } }