首页 > 其他 > 详细

测试下

时间:2015-10-26 18:29:58      阅读:258      评论:0      收藏:0      [点我收藏+]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _04我的字符串
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] strs = new string[] { "xiaoming", "laowang", "xiaowang" };
            MyString ms = new MyString();
            ms.ChangeString(strs, StringToUpper);
            foreach (string item in strs)
            {
                Console.WriteLine(item);
            }

            Console.ReadKey();
        }

        public static string Add(string str)
        {
            return "=" + str + "=";
        }

        public static string StringToUpper(string str)
        {
            return str.ToUpper();
        }
    }
}

测试下

原文:http://www.cnblogs.com/daoyi/p/4911816.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!