While I was writing these articles about creating, developing local and deploying an Azure Function App, I received this error, Figure 1. How to create an Azure Function in Visual Studio How to connect to a database from an Azure Function Deploy an Azure Function created from Visual Studio Check out all my Azure Functions […]
Read More →Publish failed
While I was writing these articles about creating, developing local and deploying an Azure Function App, I received this error, Figure 1. How to create an Azure Function in Visual Studio How to connect to a database from an Azure Function Deploy an Azure Function created from Visual Studio Check out all my Azure Functions […]
Read More →How to create a Pie chart using ASP.Net and C#
Since .Net 4.0, we no longer need to download and install the Chart Control to get charting capabilities in ASP.Net, Window Forms or WPF. This is becuase the the Charting control is now part of .Net 4.0 itself. Although all you need to know about Charting in ASP.Net can be found here I thought I […]
Read More →Add an XML Schema file to Visual Studio
XML Schema files (.xsd) are files which provide data for IntelliSense and are often provided along with a 3rd party class library. In case you are not familiar with IntelliSense, it is a functionality that helps you develop or configure a system by providing a list of existing methods or properties which are asscoiated to […]
Read More →How to read from and write to an app.Config or web.Config using C#
There are a number of ways you can do this. In this example I will use the ConfigurationManager libraries that are part of the .Net Framework. This group of methods and properties are created specifically for this purpose. I am a firm believer that every action we want to take as a programmer needs to […]
Read More →How to set the minimum and maximum width or height of a column or row using WPF
The more I use WPF (Window Presentation Foundation) the more I like it and the more I see the similarity with coding HTML pages or ASP.NET pages. Microsoft has really done a good job at separating the presentation logic from the business logic with WPF. It is much more difficult to do in Windows Forms. […]
Read More →String vs. StringBuilder
A blog would not be complete without an article about the differences between appending or modifying a string using the String Class versus the StingBuilder class. See, strings are immutable, which means once they are created they cannot be changed. Any time you make a modification to a string, after is has been created you […]
Read More →Dictionary in C#
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 →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 →