Object References

  • Thread starter Thread starter pr
  • Start date Start date
P

pr

I am trying to use VB 2005 Express Edition to implement a neural
network.

What I want is to create a class which can have as a variable a
collection of references to objects of the same type. Obviously, I
don't want to hold the object itself; just a reference to it.

Can this be done?
 
Paul,

A collection of objects always just holds references to the objects.

Kerry Moorman
 
Can this be done?

Sure, that's the behavior you get as long as you work with reference
types (classes etc).


Mattias
 
What I want is to create a class which can have as a variable a
collection of references to objects of the same type. Obviously, I
don't want to hold the object itself; just a reference to it.


'System.Collections.Generic.List(Of T)' or
'System.Collections.ObjectModel.Collection(Of T)'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top