初到这里:
1.string.Split( new char[]{'?'} ) 和 string.Split( '?' )请问这个有何不同?2.<headCode><![CDATA[<script type="text/javascript">Flash_IMG("Images/banner.swf",468,80);</script>]]></headCode> 中的 CDATA是什么意思?3.<SendTo>~/ContentList.aspx?ClassID=$1</SendTo> 中的符号 ~ 是何解以上三个问题一直没能找到答案.那位能帮助一下

解决方案 »

  1.   

    using System;public class StringSplit2 {
        public static void Main() {        string delimStr = " ,.:";
        char [] delimiter = delimStr.ToCharArray();
            string words = "one two,three:four.";
            string [] split = null;    Console.WriteLine("The delimiters are -{0}-", delimStr);
        for (int x = 1; x <= 5; x++) {
            split = words.Split(delimiter, x);
                Console.WriteLine("\ncount = {0,2} ..............", x);
            foreach (string s in split) {
                    Console.WriteLine("-{0}-", s);
                  }
        }
        }
    }
      

  2.   

    1、结果没有不同
    2、<[CDATA[......]]>表示里面的内容不使用HTML转义,也就是说&就是&,而不用写成&amp;空格也不用写成&nbsp;。
    3、因为不知道你是从哪里摘出来的,所以我只能猜测,~代表当前虚拟路径。