CodeDom (Code Document Object Model) is a language independent Object-model which is used for developing automatic source code generators. Two important usage of CodeDom are - 1) Templated Code Generation and 2) Dynamic code compilation.