{#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}

»

Monday, June 25, 2012 | 0 Comments

HTML (Hypertext Markup Language) is actually used as a common language to instruct the browsers on how to logically structure a web page through its own syntax and semantics.. So What is HTML 5 or what is the difference between HTML 4 and HTML 5 ? HTML 5 is nothing but a revised higher version of existing HTML 4 (HTML Version 4) with some addition of elements and semantics to it so that we can directly accomplish some of the tasks which we were doing through some work around in HTML 4. For example, if you to display a video, you would be using DIV tags in the older HTML and specify a href target and browser never know that you are intending to display a video and thus for displaying a video preview, you may depend on add-ons or some JavaScript based hacks or flash. ... [More]

{#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 | 3 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]

{#advanced_dlg.about_title}

.Net, .Net C# learning, C#, CLR, Design & Architecture, Microsoft .Net Framework »

Friday, December 31, 2010 | 0 Comments

As you may know Microsoft .Net itself is a framework and it executes lots of checks in the backgroud to make use of the the best available resources in your computer system as well as to manage the Microsoft .Net code execution in a smooth way. So it is really needed that one should know a bit about how your Microsoft .Net code executes in .net CLR (common language runtime) managed environment. A few about the Microsoft .Net type casting scenarios and what actually CLR does during type casting are here. You can increase your Microsoft .Net C# code execution performance if you really concentrate on the facts like this. Many of us used to check the incoming type of an object and normally we go for calling Getype method or using is keyword like... [More]

{#advanced_dlg.about_title}

ASP.NET »

Friday, November 5, 2010 | 2 Comments

Below is some useful list of data for your reference by which you can determine which object provides the best solution for persisting data between requests in an ASP.NET application. The below lists shows the different state management objects in ASP.net and describes when they should be used.... [More]

{#advanced_dlg.about_title}

.Net, ASP.NET, C#, Reflection, serialization, Webservice, WSDL »

Tuesday, September 28, 2010 | 1 Comments

Cotinuing to my post on Dynamic webservice invoke in C#, Here is the full C#.Net source code for gererating a web proxy by just providing the required WSDL URL as input. The source code targets .Net 2.0 Runtime. This code is making use of Reflection and dynamic runtime compilation features in C#.... [More]

{#advanced_dlg.about_title}

.Net, ASP.NET, C#, source code, XML »

Wednesday, September 8, 2010 | 0 Comments

The below C# .Net code will export the data in the data table Dt_Export to an MS word format document. This will be needed in many of the Asp.net application. Before using this code. Make a template in word, Then save it as Word XML document (File Version 2003 ). Now open it with Notepad or an HTML / XML editor Insert a {0} symbol at the place where you would like the data to be appeared, Now when you do the String.Format {0} will be replace with the required data in the tabular format. This uses XML word format System.Text.StringBuilder Row_Template = new System.Text.StringBuilder(); Row_Template.Append(""); Row_Template.Append("{0}"); Row_Template.Append("{1}"); Row_Template.Append("{2}");... [More]

Click here and Follow us on Twitter