C#: Hosting Web PI GUI In Own Application October 25, 2014September 29, 2017Munir HusseiniNo Comments The Microsoft Web Platform Installer (Web PI) is a very cool tool for installing frameworks, programs and web application. It…
Modify Web Platform Installer Configuration with C# October 22, 2014Munir Husseini3 Comments This post shows how to modify the WPI preferences file using C#. This file contains the configuration of the UI version of Web Platform Installer.
TFS: Get And Modify Included And Excluded Pending Changes in Visual Studio October 11, 2014Munir HusseiniNo Comments In this post on Stack Overflow, I posted code that allows access to the included/excluded pending changes that the user…
Reflection Emit: Creating Properties July 21, 2014September 27, 2017Munir Husseini1 Comment For those who need to create a dynamic type in memory using Reflection.Emit and need to add some properties, here…
Reflection Emit and Type Inheritance: Calling Base Type Constructors July 21, 2014August 2, 2019Munir Husseini2 Comments Suppose you want to use Reflection.Emit to generate a dynamic type in memory. Suppose this dynamic type should inherit a…
Roslyn: Compile C# Expressions Without Using the Scripting API May 23, 2014September 27, 2017Munir Husseini2 Comments I have an application that processes table structures. Tables have columns and some columns may contain expressions. For example, an…
WF 4.0: NullReferenceException in ActivityXamlServices.Load May 20, 2014Munir HusseiniNo Comments I tried to dynamically load a workflow XAML from a database. Simple task, I thought, because there is an API…
Fast Named Format With Linq Expressions May 3, 2014September 29, 2017Munir Husseini7 Comments This article describes how to implement “named format” functionality with C# and Linq Expressions. The .NET Framework supports string formats…
Dynamically Determine MIME Types in C# March 10, 2014Munir Husseini5 Comments Suppose you need to determine the MIME type for a given file extension in your code. Since Windows already knows…
ANTLR cannot generate ‘org.antlr.v4.codegen.CSharp_v4_5_1Target’ code as of version 4.1-SNAPSHOT February 16, 2014Munir Husseini5 Comments Today I tried to create an ANTLR 4 grammar and compile it to C#. Of course, I used Sam Harwell’s…