Stack Implementation using Managed Extensibility Framework
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh63DChuUbA_qzS-ObqLaPq6lcZXwL39Cid7Dd0fpYrixGsMWnv33KYiAN-hsWKVnKAV8xDQ88jVv4jQdUMFyYku8_Qscze_WJd7benDnek6lmsai46i64WpUKpt03lKrx2bj57yUORU0o/s320/Im1.png)
Hi Guys, This time I made a small application to simulate a basic stack data structure. But to make things interesting I used Managed Extensibility Framework. Before you Start, 1) Visual Studio with .NET Framework 4 or higher (Any Version) Step One : The Solution Create a console application project and a class library as shown in the image. Refer both the projects with System.ComponentModel.Composition. And add a reference to Console Application from the class library. Step Two : The Code Paste the following code in the Program.cs file of MEFClient Project. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; namespace MEFClient { //Stack Implementation [Export(typeof(IStack))] class MySimpleStack : IStack { ...