Can you please explain List

Hello Team would you please explain the code
explain Breafly please Enumerable.Concat(India.AsEnumerable,Uk.AsEnumerable).ToList

I hope I will get the solution

Chethan P

Hello, @copy_writes

I’ll try to keep it simple, that piece of code is linking those lists.

Enumerable is based on .Net, you can read more here: Enumerable Class (System.Linq) | Microsoft Docs

“.AsEnumerble” method is used to convert the specific type of given lists to Enumerable equivalent type.
The method “.ToList” in the end is converting the result back to a list.

Hope the explanation helps.
Happy Automation :robot:

1 Like