| c# Programming Glossary: subtotalParallel.For(): Update variable outside of loop http://stackoverflow.com/questions/2774170/parallel-for-update-variable-outside-of-loop  the end like this Parallel.For int 0 result.Count 0 i loop subtotal  subtotal result i return subtotal x Interlocked.Add ref sum.. this Parallel.For int 0 result.Count 0 i loop subtotal  subtotal result i return subtotal x Interlocked.Add ref sum x You can.. 0 result.Count 0 i loop subtotal  subtotal result i return subtotal x Interlocked.Add ref sum x You can find further discussion.. 
 Directory file size calculation - how to make it faster? http://stackoverflow.com/questions/2979432/directory-file-size-calculation-how-to-make-it-faster  Parallel.For long 0 subdirEntries.Length 0 i loop subtotal   if File.GetAttributes subdirEntries i FileAttributes.ReparsePoint.. FileAttributes.ReparsePoint FileAttributes.ReparsePoint   subtotal DirSize subdirEntries i true  return subtotal   return 0   x..   subtotal DirSize subdirEntries i true  return subtotal   return 0   x Interlocked.Add ref size x   return size   share.. 
 Subtotals in RDLC report http://stackoverflow.com/questions/6038075/subtotals-in-rdlc-report  in RDLC report  I need to display subtotals in RDLC reports. My report should display data like this Book.. is piece of cake but I can't seem to be able to define a subtotal for each book. Thanks.  c# rdlc   share improve this question.. 
 |