-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
40 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using LibraryNamespace; | ||
|
||
namespace Tests { | ||
internal class CSharpB: B { | ||
|
||
// One Must replecate an object keept via shared_ptr in Proxy language object (for GC not to eat it); | ||
// Use List for multiple delegates (this will probably add a lock to client code!) | ||
// ReSharper disable once NotAccessedField.Local | ||
private A _keeperOfA; | ||
public override void SetA( A p ) { | ||
Console.WriteLine( "C# ruls." ); | ||
_keeperOfA = p; | ||
base.SetA( p ); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters