Close
Skip to content

Softwareproduction

Software Development Blog, mainly C# and .NET

  • ASP.NET Core
  • Mobile Development
  • Code Generation
  • General Programming
  • Development Tools
  • Servers
  • Miscellaneous

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…

Read More 5405 views

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.

Read More 7134 views

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…

Read More 9310 views

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…

Read More 11815 views

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…

Read More 14658 views

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…

Read More 8834 views

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…

Read More 2364 views
Named Format with Linq Expressions

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…

Read More 3959 views

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…

Read More 7308 views

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…

Read More 3706 views
Load More
(c) 2011-2020 Munir Husseini