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 …
A List of Great C# Git Repos
Most Popular These repos are some of the most popular C# repositories. You are likely familiar with most of these by reputation at least. .NET Core – This is the granddaddy of C# open source projects. The .NET Core Framework. Roslyn – This is the project that performs code analysis for C# and Visual Basic. Mono – The original cross-platform …
2019 Is Five Days Away – Five Days Until Your Best Year Ever
This post is a little different than others I have done before. Today, we are going to discuss goals, goal setting, and best practices,. There are 5 days left before New Years. There is never a better time to tackle a new goal than right now! S.M.A.R.T. Goals Unless you have been hiding under a rock, you know what S.M.A.R.T. …
Constructor Chaining in C#
In this post, we will look at constructor chaining in C#. What is Constructor Chaining? Constructor chaining occurs when you use one constructor in a class to call another constructor on the same class. Often, because the constructors must have different signatures, you supply a safe or default value for the second constructor. Listing 1.1 – Constructor Chaining public MessagePrinter(string …
An Introduction to the AntiForgeryToken HTML Helper
The ASP.NET MVC AntiForgeryToken HTML Helper is a widely used but not well-understood helper. In this post, I will look at the details of the helper, explain how it works, and how you should be using it. What is the AntiForgeryToken Helper? The AntiForgeryToken helper protects your site from cross-site request forgery. Cross-site request forgery is the process …
5 Must Know Visual Studio Tips and Tricks
Visual Studio is an extremely large program. You are very unlikely to use even half the features of the program during your career. It is a tool that is very easy to learn and very difficult to master. Here are 5 tips that will help you move in the right direction. ALT + B + U The ALT + B …