Tag Archives: C#

Generic Class Factory – C# Part 4 / 4

This is the last post in the generic class factory series.  The previous posts included: Generic factory introduction.  Please read this post first to understand why a class factory should be used instead of simply creating an object and how a generic class … Continue reading

Posted in C#, software development | Tagged , , | Leave a comment

Generic Class Factory – C# Part 3 / 4

This 3rd post in the generic class factory series focuses on creating objects in C# with an elegant class that uses the Type class and reflection’s Activator object.  The first post in the series provides an introduction to the generic class factory … Continue reading

Posted in C#, Patterns, software development | Tagged , , | Leave a comment

Benchmark of foreach .vs. for loop

The foreach loop provides a nice way to iterate through a generic container.  But, is there a price to pay for it performance wise .vs. using a for loop? It turns out that there is a performance hit when using … Continue reading

Posted in C#, efficient software development | Tagged , , | 1 Comment

Efficient File I/O From C#

This article describes and benchmarks different ways to do file I/O from C#.  All of the code referenced in this article is available for download and is free to use. There are many different ways to do file I/O in … Continue reading

Posted in C#, efficient software development, software development, Software Productivity | Tagged , , | 33 Comments