Advertisement
wingman007

C#EventDriven_DI_B_1b

Oct 6th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace EventDriven1b
  8. {
  9.     class B
  10.     {
  11.         public A A { get; set; }
  12.  
  13.         public B(A a)
  14.         {
  15.             this.A = a; // DI constructor
  16.             // this.A = new A();
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement