CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Posts
    23

    Are all arrays reference types?

    Are arrays of value types cosidered reference types themselves?
    e.g., considering:
    int [] array = new int[10];
    is 'array' a reference type or a value type?

    Thanks.
    stephen


  2. #2
    Join Date
    Aug 1999
    Location
    Germany (Wiesbaden)
    Posts
    49

    Reference types

    Hi,

    arrays are allways reference types, as every array is inherited from the class System.Array and objects are - as you surely know - allways reference types, too. I hope this helps.

    Greetings,



    Golo Haas
    --


    http://www.golohaas.de - the web the way you want it
    http://www.guidetocsharp.de - make the internet intelligent

  3. #3
    Join Date
    May 2001
    Posts
    23

    Re: Reference types

    Thanks.

    stephen


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured