Object References

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?
 
G

Guest

Paul,

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

Kerry Moorman
 
M

Mattias Sjögren

Can this be done?

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


Mattias
 
H

Herfried K. Wagner [MVP]

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

Top