Removing All List Items

Discussion in 'C#' started by imported_GAME, Aug 31, 2010.

  1. imported_GAME

    imported_GAME New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    How can I remove all the items of a list? I do not know any thing about how the items get indexed, thats why I cannot provide a better code except this..

    for (int i = 0; i < _Cars.Count; i++)
    {

    }
     

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