C # Learning Notes bis (Stack, queue, string, Hashtable,stringbui

Source: Internet
Author: User
Tags copy count insert split
Enqueue ()
Dequeue ()
Peek ()//only get-I, not delete it
Count ()
Clear ()
Peek ()
Pop ()
Push ()
CopyTo (array, offset)//copy to array
Keys//colleation of the keys,
Values//colleation of value
Count ()
Clear ()
Contains ()//IS element in Hashtable
ContainsKey ()//is Key in Hashtable
Item ()//indexer for Hashtable
Add ()//Add entry with Key/value
GetEnumerator ()//creat and return a Enumator object
Compare () Split ()
Concat () StartsWith ()
Equals () ToLower ()/toupper ()
Insert () Trim ()
Format ()
String.Compare (S1,S2); Case sensitive
String.Compare (S1,s2, true)//case not sensitive
string s3 = @ "Test \. Net"
String S6 String. Copy (S5);
String S7 = S6
S7 = = S6
S7. Equals (S6)
String. Equals (S7,S6)
S7. Length
S3. Endwith ("Test")
int offset = S3.indexof ("TEST")//first occurence
String s10 = S3. Insert (offset, "DDD");
String S11 = S3. Insert (S3. IndexOf ("ddd"), "EEE");
S12. Split (delimiters)
Regex r = new Regex ("|,");
foreach (String s in R.split (S12)) {}
StringBuilder sb = new Stringbuild ();
Append ()
ToString ()
Regular expresstions:
Using System.Text.RegularExpressio

Related Article

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.