C#: Select All Active Local IP Addresses June 9, 2018May 13, 2020Munir HusseiniNo Comments To select all active local IP addresses (v4), use the following C# code:
Print Out .NET Classes to String in C# February 28, 2018May 15, 2020Munir HusseiniNo Comments Ever needed to generate a string that contains the C#-Code of a .NET class (in other words, print out -NET…
C#: Loading Dynamic Assemblies Into Other AppDomains May 27, 2015September 28, 2017Munir HusseiniNo Comments So you have generated dynamic assemblies (like here) and want to load the assembly into a new (or at least…
Parse JavaScript Date From String May 16, 2015September 28, 2017Munir HusseiniNo Comments Suppose you have a string representation of a date, e.g. “2015-05-15T22:43:35.0962104+02:00” or “5/15/2015”, and you need to parse that string…
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.
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…
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…
Video links: JavaScript in Various Browsers October 31, 2013Munir HusseiniNo Comments Heer some videos about modern JavaScript engines and how to optimize JavaScript code. Shashwat Agarwal – JavaScript Engines – SpiderMonkey…
Loading Assemblies In New AppDomain (And Unloading Them) July 17, 2013Munir Husseini2 Comments Today I had an issue with assemblies in an AppDomain. What I tried to do was to create a new…
Change Current Thread’s Currency Symbol July 16, 2013Munir HusseiniNo Comments Consider the following code. It shows how a decimal value is converted into a string that contains an amount and…