public Child(IGrandChild grandChild)
 {
     _grandChild = grandChild;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Parent"/> class.
 /// </summary>
 /// <param name="firstChild">The first child.</param>
 /// <param name="secondChild">The second child.</param>
 /// <param name="grandChild">The grand child.</param>
 public Parent(Child firstChild, Child secondChild, IGrandChild grandChild)
 {
     this.FirstChild = firstChild;
     this.SecondChild = secondChild;
     this.GrandChild = grandChild;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Child"/> class.
 /// </summary>
 /// <param name="grandChild">The grand child.</param>
 /// <param name="grandChild2">The second grand child.</param>
 public Child(IGrandChild grandChild, IGrandChild grandChild2)
 {
     this.GrandChild  = grandChild;
     this.GrandChild2 = grandChild2;
 }
 public Parent(IChild child, IGrandChild grandChild)
 {
     _child      = child;
     _grandChild = grandChild;
 }
Example #5
0
 public Child(IGrandChild grandChild, IGrandChild second)
 {
     GrandChild = grandChild;
     Second     = second;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Parent"/> class.
 /// </summary>
 /// <param name="firstChild">The first child.</param>
 /// <param name="secondChild">The second child.</param>
 /// <param name="grandChild">The grand child.</param>
 public Parent(Child firstChild, Child secondChild, IGrandChild grandChild)
 {
     this.FirstChild  = firstChild;
     this.SecondChild = secondChild;
     this.GrandChild  = grandChild;
 }
 public Child(IGrandChild grandChild)
 {
     _grandChild = grandChild;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Child"/> class.
 /// </summary>
 /// <param name="grandChild">The grand child.</param>
 /// <param name="grandChild2">The second grand child.</param>
 public Child(IGrandChild grandChild, IGrandChild grandChild2)
 {
     this.GrandChild = grandChild;
     this.GrandChild2 = grandChild2;
 }
 public Parent(IChild child, IGrandChild grandChild)
 {
     _child = child;
     _grandChild = grandChild;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ParentWithPropertyInjection"/> class.
 /// </summary>
 /// <param name="grandChild">The grand child.</param>
 public ParentWithPropertyInjection(IGrandChild grandChild)
 {
     this.GrandChild = grandChild;
 }
 public Child(IGrandChild grandChild)
 {
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParentWithPropertyInjection"/> class.
 /// </summary>
 /// <param name="grandChild">The grand child.</param>
 public ParentWithPropertyInjection(IGrandChild grandChild)
 {
     this.GrandChild = grandChild;
 }
 public Child(IGrandChild grandChild, IGrandChild second)
 {
     GrandChild = grandChild;
     Second = second;
 }