Connect KendoUI to MVC Web API without ODataController

This is in response to a recent post by Steve Smith (Connect KendoUI AutoComplete to MVC Action). In his post, Steve stated that using Web API to connect a KendoUI AutoComplete with OData “can present a challenge”. Yes, ODataControllers definitely present a challenge.. and, I admit.. the first time I tried to get KendoUI to talk […]

VisualStudio 14 stopped working after upgrading to Windows 10 build 9860?

Upon upgrading to Windows 10 build 9860, the latest Visual Studio 14 preview starting showing this error on startup: The ‘Microsoft.VisualStudio.Editor.Implementation.EditorPackage’ package did not load correctly. Things didn’t get any better when you try to do anything in the shiny new IDE.. For example, here’s what happens when creating a new C# Console project: Object […]

MemoryCache – Acceptably unpredictable

If you’re not familiar with System.Runtime.Caching.MemoryCache, chances are that the following code does three things you wouldn’t expect… Take a look at the call to AddOrGetExisting. Here’s the method signature if it helps.. Doesn’t look too suspicious, does it? If you’ve never seen MemoryCache.AddOrGetExisting, you might have made the following incorrect assumptions: The […]

Finding duplicate code in C#, VB.Net, ASPX, Ruby, Python, Java, C, C++, ActionScript, or XAML

Whether you realize it or not, you need a tool that finds duplicate source code in your applications. In fact, if you’ve never used one before, you probably don’t realize how much you need an automated solution to this problem. It’s nearly impossible to manually locate the types of duplicate code that such a tool […]

Using delegates to eliminate duplicate code

Here’s a simple technique you can use to easily eliminate duplicate code. Try not to let the word “delegates” scare you away from learning the technique and I’ll try to refrain from using the word “delegate” as much as possible. I’ll start small and then work my way towards a more complex example that really demonstrates its power.

Scroll Up