I had a sort-of simple bug to fix at work recently where for a given record, some of the time, a field was percent encoded. Specifically, the spaces were “%20” (sometimes, but not always). This was fine for my team, but for another team that also used that data, this was a problem. One of […]
I ran into an issue with a StackOverflowException when a repository method returned a larger-than-usual amount of data.
Fun tidbit from a co-worker this week, very helpful if you’re not exporting right to Excel from the results context menu. In SSMS: Under Tools > Options Expand Query Results > SQL Server > Results to Grid Tick Retain CR/LF on copy or save Restart SSMS This will cause CR, LF, and CRLF to be […]
I think most .NET developers (or anyone using Visual Studio for any length of time) have a running list of extensions and tools that make life a bit easier. The list varies depending on your role, of course. If you’re strictly a desktop developer, probably you don’t immediately install any Web Essentials extensions, for example. […]
Today’s fun snippet, which I likely already knew and forgot: If you want to see if a value is contained in your defined enum, this will do the trick. msdn for reference