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)'.
 
Back
Top