The main intension of the object-oriented programming is to manipulate real world objects and one of the features is reusability. There are many ways to get reusability and one of the easiest ways is ‘Inversion of Control’ in architectural patterns especially.
There are many techniques to implement ‘Inversion of Control’, find the following image for more conceptual view.

Now let’s talk about Dependency Injection. Here also same, we can Implement DI (Dependency Injection) with help of constructor, Property, Interface and Interface. This resource deals only Property Injection.
What is Injection and why it is helpful?
Injection is a technique to change object behavior at runtime.
Property Injection
Inject object through property properties with help of get and set.
Get a sample project and add Interface components to it, for more information
IdataActions is an Interface for method declarations.
- public interface IdataActions
- {
- void AddCustomerEntry(IdataProperties iDataProperties = null);
- }
- public interface IdataProperties
- {
- string customerName { get; set;}
- int customerId { get; set; }
- string customerAddress { get; set; }
- }



Sr KarthigaPosted Feb 17, 2016, 8:19 AM
Good one
Sr KarthigaPosted Feb 17, 2016, 8:18 AM
Nice explanation
Santhakumar MunuswamyPosted Dec 4, 2015, 7:25 AM
Good one
Mukesh KumarPosted Dec 4, 2015, 1:42 AM
Good One
Sridhar SharmaPosted Dec 4, 2015, 1:13 AM
Nice Share..
Mohammed IbrahimPosted Dec 3, 2015, 7:36 PM
nice
sreenivasa kPosted Dec 3, 2015, 2:44 PM
good
Ankur MistryPosted Dec 3, 2015, 9:36 AM
good one