C# switch syntax overview A quick overview of how the switch statement has changed over the years in C#.
C# quick tip-String fixed length I'm going to share a quick tip on how to easily create strings of a fixed length. For example suppose you have two strings like this. var text1 = "Short text"; var text2 = "This is a longer text"; But you want to have this instead: "Short text................" "This is a longer
Using Azure Translator API The Azure Translator service is very handy if you have some text you need to translate from one language to another. There is more that 100 languages available. See the whole list here. After creating a Translator resource in Azure it's very easy to get started translating text. You will
Visual Studio tip - Tracepoint Learn how using tracepoints can make your life easier when debugging code in Visual Studio.
More Git Interactive Rebase This will be an extension of my previous post about using git interactive rebase to change the author of a git commit. If you followed through that you probably noticed that you can do a lot more than just change a commit author. If you do a git interactive rebase
How to change a git commit author Have you ever committed code and later realized that your email or name was not correct? I recently discovered you can do this (and more things) using the interactive rebase feature of Git. Note: there are many other ways to do this as well, this is what I found worked
Json Schema Example For .Net Derived Types If you have ever worked with json you probably have needed to validate it to make sure it is structured properly for your application to understand. I recently had to validate some json where the object had an array of items and those items each derived from a base class.
Using .NET to interact with Azure Table Storage Azure Table Storage Last time I wrote about how to setup a table storage account and how to get started using the Azure Storage Explorer. This time I am going to show you how to use .NET to interact with an Azure Table storage account. I will be focusing on
Getting started with Azure Table Storage Azure table storage I will show you how to simply get started with Azure Table storage. If you have not ever looked at Table Storage you should check it out. If you are interested here is a real world example of someone using Table Storage. Azure Table storage is also
Create Nuget Packages with VS 2017 Visual Studio 2017 If you haven't tried out Visual Studio 2017 yet you really should. It won't take long to install either, they totally redesigned the installer so if you have an SSD you should be ready in 10 minutes. Common Project System Along with that there is a new
Using Cake to build your code What is Cake? This is what their website says. Cake (C# Make) is a cross platform build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages. So really you can do much more than just
A couple great tools for csharp devs A couple great tools I want to take some time and point out a couple great tools that make my day to day development easier. These work great for C# developers but are not limited to only C# as you will see. These are tools that make it very easy
Don't use async void in your code Async Code So you probably know about async and await the keywords that C# has for quite some time. If you've used them no doubt you love how easy it is to write asynchronous applications, which is true. I'm going to share with a little gotcha that if you don't
Use String.Format or string interpolation in csharp Recently I read the book Writing High-Performance.NET Code by Ben Watson. The book gives so many helpful tips to making your code run amazingly fast! Ben is part of the Bing team so he knows what takes to have fast efficient code. One of the things he mentioned was
C# async and await So async and await are keywords that were introduced with the release of Visual Studio 2012 and C#5. They certainly make asynchronous programming in C# a lot easier but it is important to learn a few things about them before making every method in your codebase async. Async So
C# new features nameof operator So C# 6 has been out for some time now but I haven't used it till recently when we switched to visual studio 2015 at work. I had read about all the features, but you can't know how awesome the are until you start using them. nameof operator This is
C# expression bodied members This is another small feature that I really like because I believe if used properly it can really clean up your code. First lets look at how we would override ToString() in previous versions and now. VS 2013 public override string ToString() { return "mystring"; } VS 2015 public override string ToString(