Created
January 15, 2013 16:56
-
-
Save migueldeicaza/4540094 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class MyContainer : Canvas { | |
| public MyContainer () | |
| { | |
| Add (new SomeChild (this)); | |
| } | |
| } | |
| class SomeChild : some_child_that_can_be_added_to_a_canvas { | |
| MyContainer PArent; | |
| public SOmeChild (MyContainer container) | |
| { | |
| this.Parent =container; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment