Skip to content
Loading
  • Sandy
    0
    Hi,
    We  can also do this without for loop 
     
    public List test()
    {
    Console.WriteLine("Enter comma seperated vlaues");
    string commasepratedstring = Console.ReadLine();
    List lstString = commasepratedstring.Split(',').ToList();
    return lstString;
    }
     
    Thanks 
    0