Sunday, 5 April 2015

Interview Questions & Answers for Prism WPF

Interview  Questions & Answers for Prism WPF

1. What is Bootstarpper?

   Bootstrapper is a class  starts the shell. For example bootstrapper for an prism mef application
   which inherits from MefBootstrapper.

2. What is Module?

    Modules are classes that implement the IModule interface

3. How many ways modules can be registered?

   Modules can be registered from  -
  • Directly inside code
  • Using Configuration
  • Using Directory Inspection

4. What is Module Dependency

   Module can have dependency on other module. Prism provides module dependency management.

5. What is Container or Dependency Injection Container?

   Core Prism library is container agnostic. The following are examples of containers that are used as
   dependency injection containers in Prism.
  • ModularityWithMef
  • ModularityWithUnity 

6. How do you register modules?
    Bootstrapper override CreateModuleCatalog and ConfigureModuleCatalog methods.

7. By default does MEF create singleton instance of objects?
   Yes, by default MEF creates singleton instance.

8. How to specify so that MEF does not create singleton instance?

    Decorate with attribute to indicate that the created instance is not shared.

Happy Programming!!
Don’t forget to leave your feedback and comments below!
If you have any query mail me to     
Sujeet Bhujbal


Unknown said...

nice questions

Post a Comment