Sequential (Linear) Search in C#: IndexOf and a Generic Version
Find a value in an unsorted array or list in C# with IndexOf, FindIndex or your own generic linear search, and why the old sentinel trick is a bug.
Find a value in an unsorted array or list in C# with IndexOf, FindIndex or your own generic linear search, and why the old sentinel trick is a bug.
Search a sorted array in C# with Array.BinarySearch, understand its negative return value, and write your own iterative or recursive binary search.
Draw bar and spline charts with the WinForms Chart control in C#, how to use it on .NET 8 where it is not included, and the alternatives.
Indent text in C# with new string(‘ ‘, n), PadLeft, alignment in interpolated strings and IndentedTextWriter, including multi-line strings and columns.
Fix “cross-thread operation not valid” in WinForms with async/await, IProgress and Control.Invoke or BeginInvoke, and know which one to use when.