Skip to content

Object parenting itself #1751

Aug 11, 2020 · 5 comments · 11 replies
Discussion options

You must be logged in to vote

I ran the code and here are the results from some of the parent references that I added to the watch window.

  Name Value Type
operation.SubOperations[0].Parent Count = 3 Csla.Core.IParent {RockTest.OperationList}
(OperationList)(operation.SubOperations[0].Parent) Count = 3 RockTest.OperationList
(OperationList)((OperationList)(operation.SubOperations[0].Parent))[2].Parent Count = 3 RockTest.OperationList
  ReferenceEquals((OperationList)(operation.SubOperations[0].Parent),(OperationList)((OperationList)(operation.SubOperations[0].Parent))[2].Parent) true bool

I noted that the "raw" Parent result is an interface, which you can see in the first row.

The second row is …

Replies: 5 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@EduardoCardosoGit
Comment options

Comment options

You must be logged in to vote
4 replies
@EduardoCardosoGit
Comment options

@rockfordlhotka
Comment options

@EduardoCardosoGit
Comment options

@rockfordlhotka
Comment options

Comment options

You must be logged in to vote
5 replies
@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@EduardoCardosoGit
Comment options

@EduardoCardosoGit
Comment options

@EduardoCardosoGit
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@EduardoCardosoGit
Comment options

Answer selected by EduardoCardosoGit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants