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
Category: C#
Welcome to the newest section of my website. I wanted to take this opportunity to post some of the tutorials I created when I was learning C#. I still review them every now and then. Hopefully they will help someone understand the language I’ve grown to love.
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