Extension Methods from Karen Payne
-
CheckedList<T>
Provides a generic method to retrieve checked items in a CheckedListBox where the CheckedListBox has been loaded with a list of T. In the example provided a record is used while in another case the source might be a class that represents a record from a database.
-
SqlClient wrapper for reading DateOnly
A wrapper to work with DateOnly for a SqlDataReader which is available starting with .NET Core 6. The example as an aside shows a secondary extension for asynchronous read for strings.
-
SplitOnUpperCase
Useful for display things like property names like FirstName to First Name.
-
.RemoveExtraWhitespace();
Removed extra whitespace from a string for NET8 and higher.