Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok, got my collection working (finally) ....

So I think I am going fine, but I need another bread crumb.

 

I would liek to make a property of an item that points back to its parent such as can be done with the datatable.row as below in the debug.writeline statement.

 

Dim dt As New DataTable

Dim dr As DataRow

dr = dt.NewRow

 

Debug.WriteLine(dr.Table.TableName)

 

Any ideas?

  • Leaders
Posted
Using the hypothetical Collection and CollectedObject classes, why not just add a field/property to store the parent Collection of the CollectedObject (for example CollectedObject.Parent). On the Collection.Add and Collection.Remove methods, update CollectedObject.Parent.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...