I have two string arrays ( I will not use it anywhere as it is not a good logic,this is for my learning purpose).
string[] names = new[] { "Joss", "Moss", "Kepler" };
string[] emails = new[] { "Moss@gmail", "Kepler@gmail", "Joss@gmail" };
How to use LINQ so as to make key value pairs like
{"Joss","Joss@gmail"} ,{"Moss","Moss@gmail"} , {"Kepler","Kepler@gmail"}
- email ids are shuffled in string array emails[]
- consider both string arrays keep unique name and unique email ids (their name as email ids).
How to use Join to project the result i want?
var JoinDemo = from grpname in names
join
grpmails in emails
on grpname ????????