My qestion is about the result of combination PLINQ and yield keyword. What will happen if i write like so:
//Some stuff here
foreach (var x in collection.AsParallel())
{
yield return new CustomObject
{
property1 = //Large calculations here
property2 = x.Name
//... etc.
};
}
What do I really want? I want to initialize objects in different threads but return them when some of them needs.
Thanks in advance!