Ejemplo n.º 1
0
        /// <summary>
        /// 添加字符串到XStrings末尾。注意+=操作比Add方法效率稍低
        /// </summary>
        public static XStrings operator +(XStrings xstrs, string strNew)
        {
            XStrings xstrResult = new XStrings();

            xstrResult += xstrs;

            xstrResult.Add(strNew);

            return(xstrResult);
        }
Ejemplo n.º 2
0
        public XStrings SubStrings(int iStart, int length)
        {
            XStrings xStrs = new XStrings();

            for (int i = 0; i < length; i++)
            {
                xStrs.Add(this[iStart + i]);
            }

            return(xStrs);
        }