Read/Write Large XML Files


Up to certain extent the performance quite depends on .NET version your application is running on.

Another quick reference is Microsoft Patterns and Practices article

There’re 4 ways to read and write XML

Continue reading Read/Write Large XML Files

Parsing XML with special characters


YouTube .NET API


https://github.com/ablaze8/YouTubeApp

C# String Extension & Helper Methods


I enjoyed spending some time after creating some very useful (at least to me 😛 ) C# helper functions for string operation. So here is the gist of it Continue reading C# String Extension & Helper Methods

LINQ to XML and XPath


An XML needs to be parsed – I was told the other day. My first questions from experience, how big the XML is going to be? Do we know the schema? The answer : It’s never going to be bigger than few lines, as we use it to store our application’s menu – which may or may not have child(ren). And yes we know the XML schema. Enough said. Continue reading LINQ to XML and XPath

Extension Methods & Interfaces


Interfaces are used to logically encapsulate definitions for a group of related functionalities, contains only the signatures of methods, properties, events or indexers. On the flip side — “extension methods enable you to ‘add’ methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type.” I suppose you already know it. Now the question arises, even if this was somehow ‘technically possible’ … why do you need it ?

A famous man once said “with great power comes great responsibilities” – who said that what is that even mean, don’t matter. I said that because he said it. So now he was famous and getting said by two well known guys. urgh … let’s track this from the beginning…

Continue reading Extension Methods & Interfaces

Team Foundation Dev Tools ( TFDT )


Few days back I started working on a utility project called Team Foundation Dev Tools ( http://ablaze8.github.io/TeamFoundationDevTools/ ). The goal is to extend the TFS api and serve some unmatched features like searching entire TFS server for some file and/or file path ( wild card and exact search ), commits by a specific user to any and/or project among all projects of a TFS server and such.

I’m not planning anything serious with it, just trying to build something I always wanted to see in an ideal TFS tool.

This is an open source tool and also supports .NET 3.5 & 4.5.2 so it’s compatible all the way back to Visual Studio 2008 running on Windows XP … up until latest and greatest !

Load Workflow from XML file in Workflow Foundation


The other day I had to use Windows Workflow Foundation in legacy .NET 3.5. The goal was to address the scenario where the power user may upload valid XML files … in an Enterprise Application for different workflows, In other words to avoid hard coding the workflow activities in C# code. So I had to essentially address 2 objectives :

  1. The workflow should be loaded dynamically on the fly
  2. There might be more than one workflows.

So I came up a simple design where the power user may upload a XML file and may give nick names … basically a mini XML file management. Then Continue reading Load Workflow from XML file in Workflow Foundation