tags:

views:

53

answers:

1

We are creating our own code generated to automate CRUD coding and we need to generate a class for use withing WPF. To do this, we need to create the class with fields/properties as dependency objects. How do we accomplish this with CodeDom in .Net 3.5?

A: 

Article - Three Ways to Implement Dependency Injection in .NET Applications

SUMMARY:Replace dependencies with Dependency Injection pattern code to make your classes easier to test and reuse

Dynamic Code Generation using CodeDOM

SUMMARY:This article explains how CodeDOM can be used to generate code dynamcially and build it using dynamic code compilation. It also explains how to apply custom attributes.

adatapost