That’s all.

  • drake@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    8 hours ago

    Sure you can, it’s the same in C# as it would be in C++ if you did a=b, where a and b are both pointers.

    You don’t want to copy the full data of a class around every time you use it, that would have extremely poor performance. If you do want that behaviour, use structs instead of classes. If you need to clone a class for whatever reason, you can do that too, but it’s not really something that you should need to do all that often.

    I don’t think you should really jump in and call something crappy if you just don’t really know how to use it, personally!