Instantly share code, notes, and snippets.

@aruld /Parallel.cs
Last active Dec 13, 2015

Embed
What would you like to do?
Parallel.ForEach(students, student => {
student.GradePointAverage = student.Tests.Select(test => test.Grade * test.Weight).Sum();
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment