dynamic vs object

      People keep asking me what is the difference between “dynamic” and the old friend “object”. Well, answer is a little tricky; in order to show the difference, it’s better to take a look at both of them more detailed.      Let me start with the old friend “object”, that is nothing but a shortcut…

Generating Managed WMI Classes

  If you are also writing code using WMI on C#, probably you’ve also use the following classes; ManagementScope, ManagementObjectSearcher, ManagementObjectCollection and also ManagementObject; But they’re not such easy classes to deal with, espacially if you’re using WMI methods. Take a look at this code:    Here is the good news; “Management Strongly Typed Class…

Reflection and Dynamic Assemblies

Within one of my applications, I need to analyze loaded assemblies for a specific attribute. To do so I’ve write the following code : But I got System.NotSupportedException exception when I’ve execute that code. After a little serach through internet, I found the problem. It’s related with the dynamic assemblies that crated and loaded by…