Last week I had a requirement where I need to Join two array,there was no relation that I could use to join LINQ. Int32[] iArrayOne = {12,34,45,89};String[] sArrayTwo= { “Value1”,”value2”,”value3”,”Value4”}
Later which I posted a question in SO,in fact it was not possible directly in LINQ.Eric has written a Post that solves my requirement. Yes the operation is termed as Zipping. Until .NET 4.0 we need to use the below snippet to achieve it and starting 4.0 we will have that function as part of the .NET.
public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult> (this IEnumerable<TFirst> first,...