Object References

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pr@paulrichards.me.uk

    #1

    Object References

    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?

  • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

    #2
    RE: Object References

    Paul,

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

    Kerry Moorman


    "pr@paulrichard s.me.uk" wrote:
    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?
    >
    >

    Comment

    • Mattias Sjögren

      #3
      Re: Object References

      >Can this be done?

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


      Mattias

      --
      Mattias Sjögren [C# MVP] mattias @ mvps.org
      http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      Please reply only to the newsgroup.

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Object References

        <pr@paulrichard s.me.ukschrieb:
        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.Collect ions.Generic.Li st(Of T)' or
        'System.Collect ions.ObjectMode l.Collection(Of T)'.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        Working...