This post is part of a series for helping beginners get started with ASP.NET Core. You can find an updated list of topics in this series here. In this post, we will learn how to read a simple value from a configuration file in ASP.NET Core. Getting Started You will need to set up a new ASP.NET Core project. You …
Creating a New ASP.NET Core Project
This post is part of a series for helping beginners get started with ASP.NET Core. You can find an updated list of topics in this series here. In this post, we will be starting creating a blank ASP.NET Core project from scratch. No fully feature templates here. First, however, I want to talk about the application I will be building …
Installing ASP.NET Core 2.2 and Visual Studio 2019
Edit: This post was updated on 4/10/2019 to reflect the recently released Visual Studio 2019 instructions Introduction This post is part of a series demonstrating the entire process of creating an ASP.NET Core application. Visual Studio 2019 includes a free version for developers to use. It is a full-featured IDE and includes everything you need to develop software on Windows …
Everything You Need to Know About the .NET Stack Collection Type
The Stack collection type is similar to other .NET collection types. It has it’s own use cases and is ideally suited to specific scenarios. In this post, I will demonstrate how to use the Stack collection type and go through some of the potential use cases. What is the Stack Collection Type? The Stack is a specialized collection that makes …
Everything You Need to Know About the .NET Queue Collection Type
The Queue collection type is a bit of a black sheep in the many different collection types. In some ways, it works exactly like you would expect any other .NET collection to work. However, in other ways, it seems to be very odd in its behavior. It will help if you remember that this is a Queue, not some ordinary …
Everything You Need to Know About the .NET Dictionary Collection Type
The Dictionary collection, just like all the other specialized .NET collection types, has a wide range of use cases that it is perfectly suited to. This can make it difficult to pick between the different types because in many cases, one of several will do just fine. After this post, you should be able to recognize when the Dictionary type …
Interface vs Abstract Class in C#
If you are confused about the difference between an Interface and an Abstract class, you are not alone. It is a popular topic and a common dilemma for beginners. Even experienced developers may not be able to answer the question ‘When do I choose one over the other?’. After this post, however, you should be able to. What is an Interface? …
Dealing With Command Line Arguments in C#
The Console Project template is often overlooked and rarely loved but, the power it possesses is amazing. If you don’t mind not working without a user interface, that is. Not all processes need human interaction, though. As a professional software developer, I have encountered many different scenarios where that is the case. I actually enjoy these projects because they have …
An Introduction to System.Reflection
In this post, we will look at several common usage scenarios for System.Reflection. Late Binding Late binding is simply runtime binding. You may not have access to the assembly at compile time. You can likely expect it to appear a certain way. You have to know something about the assembly, after all. Late binding is common in systems that may have …
Top 10 Most Common C# Interview Questions
Through the years, I have been in hundreds of interviews and phone screens as the interviewer or interviewee. Here are 10 of my favorite questions with answers. Not all of these are strictly specific to C# and might target the .NET Framework or core programming concepts. What is C#? C# is a 3rd generation general purpose programming language created by …