Profile cover photo
Profile photo
Bob Crowley
28 followers
28 followers
About
Posts

Post has attachment
I get in a lot of fights. Fights about async/await anyway. Despite async/await being over 5 years old (AOTW), there still remains a lot of confusion regarding some basic functionality. I do not presume to be an in-depth expert. Some of the things I read…
Add a comment...

Post has attachment
Dependency injection is great. Making your business logic dependent on interfaces is great. But, did you ever find it cumbersome to mock those interfaces such that all of your business logic is well exercised? Yeah, me too. In this article I’ll…
Add a comment...

Post has attachment
CodeProject   Async programming has become ubiquitous and the standard tool for making async HTTP requests with C# is HttpClient from the System.Net.Http namespace. Examples are aplenty, but good examples are few and far between. Because HttpClient…
Add a comment...

Post has attachment
A Basic Example of CRUD with DataGridView in VB.Net being one of my more popular posts, I thought I should provide a C# example. I find people on stackoverflow.com continue to struggle with setting up DataAdapters to perform inserts, updates and deletes,…
Add a comment...

Post has attachment
Are you familiar with the feature of NTFS called Alternate Data Streams? Our typical usage of files is pretty simple. We double click it and it opens. But  by default we are only accessing the “default” data stream. We can write to multiple data streams,…
Add a comment...

Post has attachment
The code shown here is part of a VS 2015 solution hosted on GitHub. If you are coming to this blog post you probably already know what Serilog is and you need to write to a “sink” that is not already provided in the list of Available Sinks. The list is…
Add a comment...

Post has attachment
As developers, we are often faced with legacy code bases that were never designed with unit testing in mind. Of course, we now know the value of unit tests and we want to test as much as possible. A good place to start implementing tests in old code is to…
Add a comment...

Post has attachment
The async and await keywords have been around for a while (since .Net 4.5) yet there still remains a fair amount of confusion regarding how it works. First off, while the compiler is arguably doing something akin to magic, you could achieve much the same…
Add a comment...

Post has shared content
OUTPUT parameters are the most efficient way to retrieve one or more scalar values from a Stored Procedure

T-SQL stored procedures that return a single a value (scalar) or a single row can benefit from the use of OUTPUT parameters. This is not appropriate for multiple row result sets, but if you just need one value, or the results of a single row, you can do…
Add a comment...

Post has attachment
Interactive Search Builder for javascript now available on NuGet.
See my blog for a quick example of what it is and how to get started:
http://www.contrivedexample.com/ce/post/2014/09/13/interactive-search-builder-for-javascript-now-on-nuget.aspx
View the project site to see how to configure it and make it pretty:
https://github.com/crowcoder/ISBjs
Wait while more posts are being loaded