I've got a couple of utility functions to support memoization for functions with anywhere between 0 to 8 arguments. Public Shared Function Mize(Of TResult)(ByVal input_f As System.Func(Of TResult)) ...
I have written the following code that tests if the current time is within a time window. It seems to work ok with my test cases, but I would be interested if anyone can see any possible problems or ...
I need a cleaner way of writing the following piece of code: For Each value As String In collection If (value = "MYKEY1") Then If (TabPageIsVisible(tpImportHealth)) Then ...
I would like to write the following piece of code cleaner and more efficient, any comments will be greatly appreciated: Dim dt As DataTable = SomeDataTable For Each dr As DataRow In dt.Rows ...
The subroutine below, GetDetailsQuarterly, accepts two dates. Then it writes out each quarter that falls within the date range. It also gives the first and last day of the quarter. I really don't like ...
I have a simple quantity display function that runs for every product displayed in our catalog. The MaxQtyDisplay value is set in our web.config file. Part of me thinks the function is as ...