Migrating CRUD operations of a key-value store with inconsistent serialization formats from the view layer to typed POCOs in the data layer. [Read More]
Dotnet
A collection of my blog posts tagged as being related to the .NET Framework, C#, .NET Core, ASP.NET MVC, etc.
The Immortality of C# Static Fields
A tale of improperly using a static field, preventing a colleague from doing the same, and a primer on why static fields should be avoided. [Read More]
Applying StyleCop Ordering with ReSharper File Layout
A guide and configuration for using ReSharper’s File Layout to auto-apply StyleCop ordering rules to elements in classes, structs, and interfaces. [Read More]
ReSharper vs. CodeRush: A Quick ‘n Dirty, Unfair Comparison
My product team is evaluating purchasing JetBrains ReSharper or DevExpress CodeRush to assist with improving code quality in our .NET application portfolio. I jotted down some unfair observations of the two products after using ReSharper for a couple of years and CodeRush for a couple of days. [Read More]
Wildcard Regex Find and Replace in Visual Studio
An example of how to use Visual Studio regex find and replace with a wildcard to quickly refactor many lines of code. [Read More]
HttpContext.Cache Multi-tenant Leak
Our team misunderstood the scope of ASP.NET’s HttpContext.Cache. This mishap led to some cross-instance data leakage in our hosting environment. Keys must always have enough unique information to identify their respective cache value. [Read More]
Incognito Debugging With Any Browser in Visual Studio
How to configure Visual Studio to debug a web application in any Windows browser’s incognito or private mode. This solution allows every debugging session to be free of preexisting cache and cookies. Supported in Chrome, Firefox, Internet Explorer, and Opera. Edge support is not yet available. [Read More]