rss
twitter
  •  

Dependency Injection Trip [Station #1]

| Posted in Uncategorized |

0

i go more than time to understand dependency injection and how we can apply it manually or using any existing framework. and at final i determine to write this trip about dependency injection

Code Snippet
  1. public class Emailer
  2. {
  3. private SpellChecker _spellChecker;
  4. public Emailer()
  5. {
  6. _spellChecker = new SpellChecker();
  7. }
  8. public void SendMessage(string text)
  9. {}
  10. }

Post a comment