If you've needed to parse or construct a URI in C#, you've likely done it with the System.Uri class. I put this script together to quickly show me the output of each of the System.Uri class methods. I used one of two test Uri's. The first test Uri is a link to a web page, … Continue reading C# System.Uri Class Examples
Author: Rick Bishop
C# Basics – Access Modifiers
The second installment in my series of C# basics illustrates the proper use of access modifiers. The public access modifier is the least desirable because it allows access to its members from anywhere in the program. [code language="csharp"] class Employee2 { // These private members can only be accessed from within this class or any … Continue reading C# Basics – Access Modifiers
C# Coding Style
This page details the coding style I've adopted for C# code in my applications. You should also read Microsoft's - C# Coding Conventions and ensure you are comfortable with the concepts described therein. Braces Use the standard .NET block brace style. This means both starting and ending braces always reside on their own line. The … Continue reading C# Coding Style
C# Basics – Inheritance
For the new C# section of my website, I wanted to post some notes that I made the first time I really got into C# and took studying the language seriously. This one illustrates the concept of Inheritance. [code language="csharp"] // WorkItem implicitly inherits from the Object class. public class WorkItem { // Static field … Continue reading C# Basics – Inheritance
In Review: C# 7.0 in a Nutshell
I've always been a huge fan of O'Reilly's "In a Nutshell" series. C# in a Nutshell was no exception. Simply put, it's the definitive desk reference for the C# programming language. One look at my copy of the 4.0 edition in this series (below) and you'll see how much I get out of these books. … Continue reading In Review: C# 7.0 in a Nutshell
SevenDaysOfSchema.com – Building this Website
This project dealt with parsing my personal collection of T-SQL scripts into a SQL Server database. I needed to accomplish as much of that process as possible, programmatically because the number of snippets in my collection had become quite large. The scripts needed to be parsed from an XML file that my code snippet software uses and from .SQL files stored in the file system. I needed to be able to link every script to its database record and that link must be maintained, even after the title or content of the script have changed. It was a process that I expected to accomplish in a couple months, but it ended up taking almost a year.
Remove Duplicate WordPress Posts in C# with WordPress API
While doing some QA on WordPress Poster, the program I wrote to post example T-SQL scripts and queries to my WordPress blog, I discovered that it duplicated many blog posts during testing. Thankfully, I anticipated that something like this could happen during the development of WordPress Poster and made sure that any content that it … Continue reading Remove Duplicate WordPress Posts in C# with WordPress API