Category Archives: Talk Examples

Blog posts that have example code from talks, presentations or conference sessions.

Parallelisation Talk Example – Parallel.Invoke

Parallel.Invoke is the most basic way to start many tasks as the same time. The method takes as many Action<…> based delegates as needed. The Task Parallel Library takes care of the actual scheduling, degree of parallelism etc. Parallel.Invoke itself … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , , | 6 Comments

Parallelisation Talk Example – ConcurrentBag

This example shows a ConcurrentBag being populated and it being accessed while another task is still populating the bag. The ConcurrentBag class can be found in the System.Collections.Concurrent namespace In this example, the ConcurrentBag is populated in task that is … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , | 3 Comments

Parallelisation Talk Examples – ConcurrentDictionary

The example used in the talk was one I had already blogged about. The original blog entry the example was based upon is here: Parallelisation in .NET 4.0 – The ConcurrentDictionary. Code Example class Program { private static ConcurrentDictionary<string, int> … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , | 3 Comments

Parallelisation Talk Examples – Basic PLINQ

These are some code examples from my introductory talk on Parallelisation showing the difference between a standard sequential LINQ query and its parallel equivalent. The main differences between this and the previous two examples (Parallel.For and Parallel.ForEach) is that LINQ … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , , | 1 Comment

Parallelisation Talk Examples – Parallel.ForEach

These are some code examples from my introductory talk on Parallelisation. Showing the difference between a standard sequential foreach loop and its parallel equivalent. Code example 1: Serial processing of a foreach loop class Program { private static Random rnd … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , , | Leave a comment

Parallelisation Talk examples – Parallel.For

This is some example code from my introductory talk on Parallelisation. Showing the difference between a standard sequential for loop and its parallel equivalent. Code example 1: Serial processing of a for loop class Program { private static Random rnd … Continue reading

Posted in Parallelisation Talk Examples, Parallelization Talk Examples, Talk Examples | Tagged , , , | 4 Comments

Where’s My Data? An introduction to Spatial Queries in SQL Server 2008

The slide deck used for my presentations to the Scottish SQL Server UG on 13/Feb/2008, the North-East Scotland .NET User Group on 20/Feb/2008, VBUG Manchester on 24/July/2008, and SQL Bits III on 13/Sept/2008. There is also a set of demo … Continue reading

Posted in Community, Talk Examples | Tagged , | Leave a comment

An introduction to mock objects

Sometimes when you are unit testing you might get to a point where you say “That’s too difficult to unit test so I’m just going to leave it”. This is where mock objects come in. Mock objects are stand-in dummy … Continue reading

Posted in Community, Talk Examples | Tagged , | Leave a comment