Posts

C# Extension Methods

C#.NET comes with a lot of string processing methods like Substring , Compare , IndexOf , Replace , etc. Although the number and scope of such methods are vast, programmers still constantly have to rewrite similar text processing methods over and over again to suit their needs. Luckily we can extend on them and create all kinds of advanced string methods in C#. public string Replace ( string oldChar, string newChar) public string Replace ( string oldString, string newString) We will focus on Replace method here. In C#, Replace method has the following two signatures: Replace method does not give us the flexibility to replace after/from a specified position in a string or to replace for a specified number of occurrences within the string. This was possible in VB6. So, especially in migration projects there arises a need where we need to have extension methods of Replace. The signature of the extension methods we will create are as follows: public s...

Can SharePoint 2013 Workflows be an option for lightweight BPM Tool?

Most employees in any organization would describe SharePoint as the Intranet or a document management system. What many fail to see are the other rich features on offer like social platform, record management, hosting public websites and last but not the least – a platform to host workflows. Workflows are crucial in orchestrating processes in any organization. Organizations often debate if they really need a white-labelled full-suite BPM solution for lightweight business processes? Can organizations with investments/plans for investments in SharePoint work around some of their less complex workflows in SharePoint? Workflow is perhaps one of the most overhauled functionality from SharePoint 2010 to SharePoint 2013. The introduction of the Workflow Manager (WM) ensures that Workflows no longer run in the SharePoint servers. This goes a long way to improve stability, scalability and transparency. The Workflow Manager, with its power and flexibility of Windows Workflow Foundati...