Reset array

Discussion in 'C#' started by go4expert, Jun 4, 2007.

  1. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    9
    Trophy Points:
    0
    string[] nth_string = new string[1000];

    After they are no longer needed, How can I reset them as though the
    program were just started?
     
  2. Statement

    Statement New Member

    Joined:
    Mar 12, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    string[] nth_string = new string[1000];
    // use nth_string
    nth_string = null;
    // or re-initialize
    nth_string = new string[1000];
     

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