Category: C# Blogs

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins

Benjamin Perkins C#

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins The Beginning C# 7 Programming with Visual Studio 2017 book is now available, check it out here.  I had again an opportunity to contribute some chapters to this book.  What an awesome experience!  There are lots of examples, experiences, discussions and reviews of the […]

Read More →

How to create a Pie chart using ASP.Net and C#

Benjamin Perkins 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

Benjamin Perkins C#

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 →

String vs. StringBuilder

Benjamin Perkins C#

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 →

Combining 2 Generic Lists into 1 with C#

Benjamin Perkins 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#

Benjamin Perkins 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 →