bmerrell

Stories submitted by bmerrell

using block trick for Generic Types and IDisposable(wijix.com)

submitted by bmerrellbmerrell(330) 3 years, 10 months ago

Let's say you have a generic class with a new() constraint on the type parameter. This means that you are allowed to create new objects of the generic type. read more...

add a comment |category: |Views: 17

tags: another

SQL Server Common Table Expression Hierarchical Example(wijix.com)

submitted by bmerrellbmerrell(330) 3 years, 10 months ago

SQL Server 2005 provides a mechanism called CTE or Common Table Expressions for pre-loading data or setting up for later use. It is really fast compared to pre-2005 which did not have such a feature. To illustrate I'll take some hierarchical data and load it into a CTE. read more...

add a comment |category: |Views: 15

tags: another

"Using" Type Alias(wijix.com)

submitted by bmerrellbmerrell(330) 3 years, 10 months ago

I am surprised how many people still don't know they can alias namespaces using the C# keyword using. Resharper automatically adds this syntax for me and it seems like 1 person a month says that didn't know. read more...

add a comment |category: |Views: 8

tags: another

Generic C# Singleton goodness(wijix.com)

submitted by bmerrellbmerrell(330) 4 years ago

Here is a Generic Singleton factory. Enjoy! read more...

add a comment |category: |Views: 33

tags: another

Debugging a Windows Service using Visual Studio .NET 2005(wijix.com)

submitted by bmerrellbmerrell(330) 4 years ago

When you want to debug a windows service using the Visual Studio IDE you can either attach to the process which isn't fun after 5 minutes or you can do the following. read more...

add a comment |category: |Views: 19

tags: another

Regular Expressions that no one cares about(wijix.com)

submitted by bmerrellbmerrell(330) 4 years ago

When you want to debug a windows service using the Visual Studio IDE you can either attach to the process which isn't fun after 5 minutes or you can do the following. read more...

add a comment |category: |Views: 2

tags: another

NUnit Quick and Dirty Guide(wijix.com)

submitted by bmerrellbmerrell(330) 5 years ago

NUnit "Quick and Dirty" Tutorial In the style of the JUnit Quick and Dirty Tutorial, here's a similar tutorial for NUnit. I'm assuming that you're familiar with C#/.NET, downloaded NUnit and have a development environment all setup for compiling and running C# code. read more...

1 comment |category: |Views: 477

tags: another

Bulk Loading XML into SQL Server 2005 using .NET(wijix.com)

submitted by bmerrellbmerrell(330) 5 years ago

With a number of clients, I have been provided a sample format for a transactions along with instructions to develop a process to load it into a database as quickly and painlessly as possible. This usually comes with the requirements that the XML data file can have any number of records from 1 to n. This example demonstrates the most efficent and scalable way that I have found to solve this. Not to mention that it can be maintained without rebuilding the solutions each time the data format changes. read more...

add a comment |category: |Views: 60

tags: another