Let's say I have this line for a type X
and a List<X> lx
:
Dict<string, X> d = lx.ToDictionary(x => F(Z.g(x).ToString()), x => x)
where Z
is a type with static member function Y g( X x)
where Y
is a type implementing ToString
.
Now I change Y g( X x)
into Y g( X x, T t)
where T
is some type . Let's say I have a List<T> lt
with same Count
as lx
. I would like to change my previous line into (warning, pseudo code) a line :
Dict<string, X> d = lx.ToDictionary(x => F(Z.g(x, something).ToString()), x => x)
where in the expression something
I get the index i
of the x
inside lx
, index to which I associate lt[i]
.