In C# Math.Clamp is a helpful method if you need to force a value to stay within a particular inclusive range…
You might also be interested in...
Using C# indices and range syntax to access elements in a sequenceMicrosofts Indices and Ranges page provides examples of the indices and range syntax available in C# (introduced in C#8). This syntax … Continue reading Using C# indices and range syntax to...
Skip breakpoints in Visual Studio 2022 by forcing VS to run to cursor
In Visual Studio 2022 instead of deleting or disabling breakpoints (or pressing continue a lot) when we don’t need them … Continue reading Skip breakpoints in Visual Studio 2022 by...
Minimise the cost of context switching in software development with work in progress (WIP) limits
The cost of context switching in software development is huge. Multitasking is deceptively time-intensive. When we are constantly switching from … Continue reading Minimise the cost of context switching in...
ImmutableList performance improvements in .NET 6
Another small but welcome performance improvement in .NET 6 is with item retrieval times when using ImmutableList… It looks like … Continue reading ImmutableList performance improvements in .NET 6...
How to open definition of method or class in peek view in Visual Studio
In Visual Studio holding Ctrl and clicking on a method or class name will by default bring you to its … Continue reading How to open definition of method or...