I am learning plug able architecture in .Net using Managed Extensibility Framework (MEF.) I saw sample code on the net, but when I tried to implement it I got stuck at one point.
The code was using:
var catalog = new AttributedAssemblyPartCatalog(Assembly.GetExecutingAssembly());
var container = new CompositionContainer(catalog.CreateResolver());
This var
is available on C# 3.0 where as I am coding in C# 2.0.
What is the alternative of above two statements? How can I make them work in c# 2.0 using VS 2005?