I am wondering how this statement works while converting a list to a dictionary. The expression is much like
OtherList = MyList.ToDictionary(x => x.MyId, y => y.MyName);
can anybody explain that why there are two variables x and y ? And how they work together ? Cant I use the same variable twice ?