字符串大小写转换

时间:2022-12-05 20:59:46

题目描述 

将字符串进行大小写转换。(控制台应用程序)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 字符串大小写转换
{
    class Program
    {
        static void Main(string[] args)
        {
            string mystr = "This is an example of conversation on string";
            Console.WriteLine("大写字母:" + mystr.ToUpper());
            Console.WriteLine("小写字母:" + mystr.ToLower());
            Console.ReadKey();
        }
    }
}
字符串大小写转换