built-in,, value, reference types

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • puzzlecracker

    built-in,, value, reference types

    I am sort of confused about the differences among them as I am coming
    from C++

    Can anyone explain how they are allocated, where are they stored,
    etc?

    I am also shocked that struct is value type? Can struct have member
    methods?

    Thanks
  • Alberto Poblacion

    #2
    Re: built-in,, value, reference types

    "puzzlecrac ker" <ironsel2000@gm ail.comwrote in message
    news:d71d6d17-cda6-427f-b605-6950314add25@d1 g2000hsg.google groups.com...
    >I am sort of confused about the differences among them as I am coming
    from C++
    >
    Can anyone explain how they are allocated, where are they stored,
    etc?
    It's more complex than most people think. Jon Skeet has written an
    informative article:

    I am also shocked that struct is value type? Can struct have member
    methods?
    Yes, it can have member methods, properties and events. The main
    limitation of structs, when compared with classes, is that you can't inherit
    from them.

    Comment

    Working...