LINQ

C# String Interpolation, and Expressions, used in a way I have never encountered before

When reviewing other developers' code, I often see small constructs that I would never write myself, yet pause thinking for a moment, "I must ...Read more

The struggle of Software Requirements: Mass Spectrometry EIC Peak Aggregation vs. Time

Software developers have to endure many recurring frustrations. One of my pet hates is having to trawl through software requirement documents bloated out with ...Read more

Tenor Manipulation with LINQ and C#

In financial products, the term tenor has multiple usages but it is commonly it is referred to as the time remaining for a loan ...Read more

Hello ‘Centred Moving Average’ – How very different the source code is in different programming languages!

As part of a data size reduction and chromatogram smoothing PoC project, I needed to implement a Hello World 'Centred Moving Average' algorithm on a ...Read more

(String) letter frequency in LINQ

How would you determine the frequency of letters in a string using C#? If your mind naturally wandered down some abstruse solution involving loops ...Read more

Flattening a Dictionary of Lists with LINQ

I am quite fortunate in that being a Freelance Contractor, I can pursue only work that interests me. It is always a bonus when ...Read more

‘SELECT’ing a distinct set of values from CSV :- LINQ and Regex

Over the past couple of years, I have found myself refactoring a lot of code written by others, spaghetti code, and often written ...Read more