I am Working on Windows Phone app Development: i have a requirement here.
i have 3 project,
1) BaseLibrary project - library project i.e., Phone Class Librar
namespace BaseLibrary
{
[Export("base",typeof(AppSettingsDefaultImpl))]
class AppSettings : AppSettingsDefaultImpl
{
public override string getAppName()
{
return "ABC";
}
}
}
namespace ChildApp1
{
[Export("child",typeof(AppSettingsDefaultImpl))]
class AppSettings : AppSettingsDefaultImpl
{
public override string getAppName()
{
return "ABC";
}
}
}
Then:
CompositionContainer container;// override MefBootstrapper
AppSettingsDefaultImpl appSettings =
container.GetExport<AppSettingsDefaultImpl>("child");