Learning to use the system. Collections. Specialized. stringcollection class of ASP. NET

Source: Internet
Author: User
Stringcollection is a collection of strings, which is equivalent to a dynamic array of strings.
Main members:
/* Attribute */count; // * Method */Add (); // Add the string addrange (); // Add the string array clear (); // clear contains (); // whether copyto () exists; // copy to the string array indexof (); // retrieve the index, if no,-1 insert (); // insert remove (); // Delete the specified removeat (); // Delete the object according to the index
Simple test:
Protected void button1_click (Object sender, eventargs e) {stringcollection SC = new stringcollection (); SC. add ("AAA"); SC. add ("BBB"); SC. addrange (New String [3] {"one", "two", "three"}); SC. insert (1, "111"); SC. insert (0, "000"); string STR = ""; for (INT I = 0; I

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.