new Struct?

Discussion in 'C#' started by Syneris, Sep 3, 2010.

  1. Syneris

    Syneris New Member

    Joined:
    Sep 3, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I was in a discussion about using new on structs and no one was able to be exactly sure what happens. What does it do? Does it allocate a new block of memory every time you call new on an existing struct variable or just set the values to default? The MSDN isn't very clear on this.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice