Category: C# Hacks

  • How to: Determine which .NET Framework versions are installed, the easy way

    Although, having migrated to .net Core for the most part,we all have to support our older applications using .net Framework. As a part of routine, you may tend to update the .net framework in your application only to find out that your test or even prod (yikes!) do not have the latest framework installed.  One […]

  • Selenium AND .NET Core 2.0 Preview 2 – it works!

    Original posted at: Selenium AND .NET Core 2.0 Preview 2 – it works! The site has been down for a couple of days for me so I thought of making a copy of it. The .NET team released Preview 2 of .NET Core 2.0 as well as a newer build of Visual Studio Preview 15.3 […]

  • 7 lesser known hacks for debugging in Visual Studio

    Post originally appeared at: Please refer the thread for more discussion, this is for reference purpose only.   The Visual Studio debugger is a magical beast that can save you loads of time while finding and fixing issues in your application. It is chock-full of tools that can make debugging easier… if you know […]

  • The fastest way to split a string using CLR

    The original post appeared here: Please visit the original website for more discussion, this is for reference purpose only.   using System; using System.Collections; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; public partial class UserDefinedFunctions { [Microsoft.SqlServer.Server.SqlFunction( FillRowMethodName = “FillRow_Multi”, TableDefinition = “item nvarchar(4000)” ) ] public static IEnumerator SplitString_Multi( [SqlFacet(MaxSize = -1)] […]

  • Difference between ASP.NET MVC and ASP.NET Web API

    Found this interesting article on Most people tend to think MVC and web api are the same thing. Well not really!   While developing your web application using MVC, many developers got confused when to use Web API, since MVC framework can also return JSON data by using JsonResult and can also handle simple AJAX requests. […]