Exemple #1
0
 public ClassA()
 {
     // Call outside function to get Interface B
     this.InterfaceB = new ClassB();
     // Set IB to have A
     InterfaceB.SetIA(this);
 }
    public ClassA()
    {
        // Call outside function to get Interface B
        IB interfaceB = Program.GetInsanceForIB();

        // Set IB to have A
        interfaceB.SetIA(this);
    }