I am finding that as you learn to use and implement more sophisticated programming techniques the easier it becomes to created what many would call “complex algorithms”. I believe this, just think about what alternative you have to a Dictionary. I mean other than the similar methods found in the System.Collections or Systems.Collections.Generic classes. Configuration […]
Read More →Tags: C#
Combining 2 Generic Lists into 1 with C#
I was writing a program that converted a List into a comma delimited string. A later requirement necessitated that I capture data from an additional source and add it to the original comma delimited string. In both cases the data was returned in a generic list, so I only needed to combine the 2 lists […]
Read More →Fields vs. Properties in C#
There is a very significant difference between a field and property within a class. The difference is in the behaviour of the field when defined as either a static or instance. Basically, if you create 2 instances of class which has a static field, when you change the value of that field, the values in […]
Read More →How to stop selection change event in combo-box from firing when populating loading it
If you have ever wanted to take some action when a user changes a selection in a combo-box (drop down selection list) you would put your code in the SelectionChanged event of the WinForm or WPF system. If you have ever wanted to set the combo-box to a default value when the window is being […]
Read More →The number 400

What is significant about the number 400? 400 is 20² 400 is divisible by: 1, 2, 4, 5, 8, 10, 16, 20, 25, 40, 50, 80, 100, 200, 400 400 equals 2⁴ * 5² or ( 2*2*2*2*5*5) 400 is a self-number which are generated by this formula: You can write 400 like this: four hundred, […]
Read More →How to securely connect to Azure from C# and run REST APIs

Three things that got me here. First, I learned about creating a Service Principle in Azure and that the credentials for that those can be used to login to Azure, for a given Tenant/Directory ID. See here “Create an Azure service principal with Azure PowerShell”, also here if you want to see how to create […]
Read More →Call a parent method from UserControl using WPF in C#
I was implementing some paging functionality in a system I was building and realized that I had created the same forward, backward, first and last buttons and logic 3 times. After doing this I realized these buttons and logic were a perfect example of where I could reduce complexity and encapsulate my code better. I […]
Read More →Server Error 0x800004005 Request timed out.

I wrote this post and this lab about the impact of having debug=true in your web.config file. The fact is, when you are running in a production environment, you do not want to have debug=true. However, I was writing a series of NETSH tracing posts: Capturing a NETSH network trace Analyze NETSH traces with Wireshark […]
Read More →How to analyze a trace taken using NETSH TRACE

I wrote article “Capture a NETSH network trace” here, where I discussed how to capture a NETSH trace, I will discuss how I analyzed it now. I wrote another here that explains how to convert the ETL into a CAP file so it can be analyzed in Wireshark or Network Monitor. “Analyze NETSH traces with […]
Read More →Configuration error, targetFramework 4.7

I was deploying some code to one of my IIS servers and got this YSOD as seen in Figure 1. I had coded in Visual Studio 2017 with the .NET Framework 4.7 targeted from my ASP.NET Web Forms application I wrote. Figure 1, Server Error, targetFramework=”4.7” Server Error in “/” Application. Configuration Error Description: An […]
Read More →