Stack Implementation using Managed Extensibility Framework
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 { ...