C# (3)


BigCommerce – Creating a WebHook

I couldn’t find any reliable C# examples on how to create a webhook using BigCommerce’s API so I thought I’d share my solution. The example code below will create a webhook when an order is created in your BigCommerce store. //BigCommerce Authorization string clientID = “<your_client_id>”; string token = “<your_token>”; string storeHash = “<your_store_hash>”; string […]




MemoryCache doesn’t persist when attached to Visual Studio Debugger

With .NET 4.0, System.Runtime.Caching MemoryCache can be used to persist large object collections for better performance. This works great when your web application is published to a server. When debugging in Visual Studio, you’ll find that the cache object will be empty at random times. This is apparently caused by a bug in .NET 4.0. […]




String vs StringBuilder

Recently I was asked the question if I knew the difference between a String and StringBuilder. The expected answer, which was not my answer, was String is immutable while StringBuilder is mutable. My ill-informed response was, “String is not immutable. I constantly change the values of Strings in my code.” The response I got was, […]