StructLayout attribute magic

I’ve been reading for a while in the great CLR via C# second edition book, and here is one of the best things I’ve seen there,When you declare a type, the CLR in runtime automatically rearrange the order of your type members for performance, so the access to these members are faster, and also trying…

0

Parallel Event Handling in Windows Workflow

I’ve been using Windows Work Flow (WF) for a while, and I faced a lot of problems that I could solve, and this article is about one of them,I am working on a project that faced the situation which I need to raise the same event to more than one HandleExternalEventActivity activities working in parallel,…

1

C# 3.0 Lambda Expressions and Expression Trees

From the first days of C# 1.0 we could do stuff like this public static int Add(int x, int y){ return x + y;} and also C# gives you the ability to write the function signature in the form of delegate, that allows function pointers so you can do something like this delegate int MathOperation(int…

0

How to increase application scalability using Plugins

This time I will talk about how to implement a plugin module that loads and runs plugins in your application.but first why do we need such thing?In so many cases, you need to provide a way that enables someone else to write a piece of code that can be loaded in your application in runtime…

2