Spending time on doing nothing I have found a really god article about some news in the 4-th version of C# which I would like to present in this post. Especially I have ben interested in one construction in particular which allows the programmer invoking some method for the all elements of a collection in the pararell way. It looks like the following one:
string []tab=new string[]{"a","b","c","d","e"};
System.Threading.Tasks.Parallel.ForEach(tab, Method);
where
private static void Method(string val)
{
}
No comments:
Post a Comment