New Features in C# 7
May 16,
2017
In this article, we’ll look at some of the new language features of C# 7 that will help us write cleaner, less buggy code in a shorter time. Binary literals In C# 6 we can currently represent integers in decimal or hexadecimal formats. int d = 42; int h = 0x2A; In C# 7, we […]
Localizing ASP.NET MVC routes/URLs
Jul 15,
2016
Most websites now use some form of “pretty” URL. Gone are the days of URLs that exposed the relative path structure of the server…ending in “Default.aspx”. There are many benefits to decoupling your URLs from the underlying technology. URLs should really be viewed as part of the presentation layer. They are part of the user […]
Face and Emotion Detection using Microsoft Cognitive Services
Jul 13,
2016
Microsoft Cognitive Services provide tools to help you include powerful, machine-based artificial intelligence in your applications. There are a range of APIs covering: computer vision speech recognition language understanding knowledge exploration search In this article, we’ll be looking at two APIs in the computer vision areas: Face API Emotion API The Face API allows us […]
Mocking an ASP.NET MVC controller using NSubstitute
Nov 23,
2015
I’ve found that the concept of mocking confuses some developers. It’s probably due to the fact that they usually experience the idea formally, at first—in the context of a mocking framework. Some of these frameworks are very powerful—and fairly complex. However, The basic idea is quite simple. Take the following controller public class NotificationController : […]
Extending Excel Functionality with an RTD Server: Part One
Nov 17,
2015
Part One: Accessing a Web Service Using C# In the previous installment we saw how to create a COM server for use by Microsoft Excel. We will now look at how we can use this technology to create what Excel calls a “Real-time Data”, or RTD server. An RTD server is called at regularly scheduled […]