예제 #1
0
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;
            Console.InputEncoding = Encoding.UTF8;

            int num = 153;
            Ex001_InformationOfNumber infoNum = new Ex001_InformationOfNumber(num);
            Console.WriteLine(infoNum.ToString());

            dynamic lastName = "Chand";
            dynamic dynAuthor = new Author();
            Console.WriteLine(dynAuthor.FullNameMethod(lastName));

            string strShow = String.Format("    Space     of     string:     {0}    ", ExerciseString.nbOfSpace(infoNum.ToString()));
            Console.WriteLine(strShow);
            ExerciseString.removeSpaceReduntion(ref strShow);
            Console.WriteLine(strShow);
            ExerciseString.concatString(ref strShow, "abc");
            Console.WriteLine(strShow);

            ExerciseString.stringLower(ref strShow);
            Console.WriteLine(strShow);

            //ExerciseString.stringUpper(ref strShow);
            //Console.WriteLine(strShow);

            ExerciseString.upperCharacterStartWord(ref strShow);
            Console.WriteLine(strShow);

            ExerciseString.upperAndLowerCharacterAlternate(ref strShow);
            Console.WriteLine(strShow);

            Console.ReadKey();
        }