Archives for Language features, Development Methodologies - Page 22
LINQ versus looping–Performance
Looping and Iterating is bad for performance right? So – a loop like the one below should be bad. for (int i = 0; i <= iterations; i++) { foreach…
VS 2010–View Call Hierarchy
Have you ever wanted to find all implementations of a particular interface method? Or all the overrides of an abstract method? In the past, this meant downloading a plugin such…
Use Funcs only if you want results back
If you are trying to encapsulate a method that returns a value, Funcs are ideal. However, what if your method returns void? Func will not work (Funcs were designed to…
Inserting copyright notice into your source files
UPDATE : The ‘Macros’ is no longer found under the ‘Tools’ menu in VS2012. You can download this extension for VS 2012 that provides macros capability – though I found…
Visual Studio Plugins that you (read ‘I’) didn’t know existed…
Of these, the only one I had been using was
Architecture for multiple services differentiated by Feature and by Platform
Say you have a set of services that your application (the server side) exposes. These could be categorized by feature: Account Service – contains methods for Creation, Deletion, Updating of…
The most powerful pattern of all–The State Pattern (with C# source code)
If there was a pattern that could be used just about anywhere, in any situation – and still work, what would that pattern be? For me, the answer is the…
Command Pattern to the rescue
Recently, I was asked to take an existing library of methods (written in c#) that worked against a particular platform (say Oracle on the backend) and build an equivalent set…
Searching through and Editing csproj files
Visual Studio’s capabilities, when dealing with .csproj files, are somewhat limited. It restricts users – both when searching for content in .csproj files – as well as the ability to…
VS 2010 Solution Explorer–Collapse Solution
In VS2010, the Solution Navigator provides a Collapse All feature (as shown above), enabling you to collapse all projects within a solution. Unfortunately, the collapsed projects do not stay collapsed…