C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 218 Page Views: 

How do you call parallel version of foreach loop?



Posted By: Avi Date: 13 October 2010 01:42:47 PM
 Answer:

Parallel.ForEach(list, (i) => i.DoSomething());


Posted By: avibtech


Date: 13 October 2010 01:42:47 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image GCWaV3
Related Questions
C# : In C# out of internal and private what is the default access specifier of the class and member variable?

In C# out of internal and private what is the default access specifier of the class and member varia....

The access specifier at the class level is internal and at the method and member variable level it i....
Category: C# Date: 10/1/2010 11:25:31 AM
C# : How many Access specifiers are there in C#?

How many Access specifiers are there in C#?

There are 5 access specifiers in C#. They are as follows:- 1. public 2. private 3. protected 4. inte....
Category: C# Date: 10/1/2010 11:24:31 AM
C# : Can we have a variables inside the interface?

Can we have a variables inside the interface?

No, we can have only methods, properties, indexers and enums inside the interface.
Category: C# Date: 7/3/2010 1:54:37 PM
C# : What is static class and what is use of this?

What is static class and what is use of this?

Static class we define when we do not want to create a object of class, all methods of static class ....
Category: C# Date: 7/3/2010 1:54:06 PM
C# : What are the properties of abstract class?

What are the properties of abstract class?

1. Abstract class can contain the prototype of method and/or implementation of methods. 2. Direct o....
Category: C# Date: 7/3/2010 1:50:28 PM