c# - What is a pattern to enumerate two lists at the same time, without index? -


I'm looking for a creative paradigm to calculate two IEnumerable & lt;> 's synchronization.

If I was making some up and adding C # syntax, I could write:

  foreach (first first itam, second in it etc.) On, this.list 2) {if (firstItem.Prop == secondItem .profe) WorkSessionMagic (Second Itam); DoSomethingElse (firstItem); }  

Now, obviously does not exist Which patterns are used to meet similarities while dealing with the enumeration used by people? Keep in mind, what would be more complex inside my pseudo-foreach; For example I have simplified.

You are looking for a zip, which is new to .NET 4 or you can implement it here. You can use:


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -