国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C# > 正文

C#學習筆記之二(stack, queue, string, HashTable,StringBui

2024-07-21 02:19:43
字體:
來源:轉載
供稿:網友
  • 本文來源于網頁設計愛好者web開發社區http://www.html.org.cn收集整理,歡迎訪問。
  • queue:
    enqueue()
    dequeue()
    peek() //only get first element, not delete it
    stack:
    count()
    clear()
    peek()
    pop()
    push()
    copyto(array, offset) //copy to array
    dictionary/hashtable:
    keys //colleation of 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
    strings:
    string
    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
    stringbuilder sb = new stringbuild();
    append()
    tostring()
    regular expresstions:
    using system.text.regularexpressions;
    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 曲麻莱县| 鄂托克旗| 博客| 丰城市| 格尔木市| 兴隆县| 寿宁县| 桦川县| 陆良县| 孟州市| 积石山| 东山县| 酉阳| 张北县| 沽源县| 青铜峡市| 哈巴河县| 关岭| 和静县| 吉木萨尔县| 株洲县| 勃利县| 桐梓县| 九龙城区| 天柱县| 乌兰察布市| 大埔区| 葫芦岛市| 若羌县| 平山县| 海兴县| 威宁| 年辖:市辖区| 南召县| 南平市| 礼泉县| 三明市| 秭归县| 香港 | 乌拉特中旗| 滕州市|