{#advanced_dlg.about_title}

This just in...

MEF is now a part of .Net 4.0, MEF was around the corner for nearly some time now and it was available as one of the open source framework in Microsoft’s open source community. (http://codeplex.com/mef ). Now with lot of modifications and a finishing touch, it has been added as a new feature in Microsoft .Net 4.0. (Packed with Visual studio 2010) So what is MEF or Managed Extensibility Framework? What is it actual use? To answer, Managed Extensibility Framework (MEF) is a new library in .NET Framework 4 and Silverlight 4 that addresses the design problem of extensibility to some extend by allowing application to discover and use MEF extensions without using any configuration files. Here the application receiving extensions also should be MEF compatible and it will search for the MEF extensions on a particular path which is again declared inside the main application by any of the following ways... [More]

Thursday, July 28, 2011 | 0 Comments
{#advanced_dlg.about_title}

.Net, C# »

Thursday, July 28, 2011 | 0 Comments

MEF is now a part of .Net 4.0, MEF was around the corner for nearly some time now and it was available as one of the open source framework in Microsoft’s open source community. (http://codeplex.com/mef ). Now with lot of modifications and a finishing touch, it has been added as a new feature in Microsoft .Net 4.0. (Packed with Visual studio 2010) So what is MEF or Managed Extensibility Framework? What is it actual use? To answer, Managed Extensibility Framework (MEF) is a new library in .NET Framework 4 and Silverlight 4 that addresses the design problem of extensibility to some extend by allowing application to discover and use MEF extensions without using any configuration files. Here the application receiving extensions also should be MEF compatible and it will search for the MEF extensions on a particular path which is again declared inside the main application by any of the following ways... [More]

{#advanced_dlg.about_title}

.Net, .Net C# learning, C# »

Friday, July 1, 2011 | 0 Comments

We all know that the way .net handles a string is not optimal and uses up lot of memory, thought there are reason to do like this. But if we have more string objects or comparison inside our assembly then in this case surely it is going to be a performance hit. But here what really happens is framework itself take cares at least some part of it using the concept of Sting Interning It seems that there is an internal hashtable maintained with the actual string value and it’s reference to managed heap. And two methods help us to handle this hash table This is the “Intern” and “IsInterned” methods which is part of string manipulation class.... [More]

{#advanced_dlg.about_title}

.Net, C# »

Thursday, June 2, 2011 | 0 Comments

This is a code snippet which i got from Jeffrey Richters blog. This code offers a way to raise notification event when a garbage collection occurs on Generation 0 or Generation 2 object Here is the code for the class: public static class GCNotification { private static Action s_gcDone = null; // The event’s field public static event Action GCDone { add { // If there were no registered delegates before, start reporting notifications now if (s_gcDone == null) { new GenObject(0); new GenObject(2); } s_gcDone += value; } remove { s_gcDone -= value; }... [More]

{#advanced_dlg.about_title}

ASP.NET »

Saturday, May 28, 2011 | 0 Comments

  Have you ever encountered a scenario in which multiple application pools are running on your webserver, say you might be using Microsoft IIS as your webserver and perplexed on How to find outwhich asp.net webapplication is running under which applicationpool’s worker process (W3WP.exe)... [More]

{#advanced_dlg.about_title}

.Net, C# Threading, MultiThreading, ASP.NET, C# »

Wednesday, January 26, 2011 | 0 Comments

This is about a problem that i have faced during the development of an asp.net application. In a certain scenario there was a need for us to create multiple threads manually inside an asp.net application. We created this using the below code Thread Th = new Thread (Myobj.mymethod) Th.Start(); Now everything worked fine as expected in Microsoft Visual Studio ide and there was no problem until i deployed my code in webserver which was IIS. After deploying to IIS the manual thread was not getting invoke or executed regardless whatever we do. These manual threads always used to get pre-empted or killed before it executes. It really took a while before we found out what exactly we need to do to make these threads work... [More]

Click here and Follow us on Twitter