1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Reset array

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

  1. go4expert

    go4expert Moderator

    Joined:
    Aug 3, 2004
    Messages:
    306
    Likes Received:
    7
    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