예제 #1
0
        static void Main(string[] args)
        {
            var ft = new FormattedText("hello world");

            ft.Capitalize(3, 7);
            Console.WriteLine(ft);

            var ft2 = new BetterFormattedText("hello world");

            ft2.GetRange(3, 7).Capitalize = true;
            Console.WriteLine(ft2);
        }
예제 #2
0
        static void Main(string[] args)
        {
            var ft = new FormattedText("This is a brave new world.");

            ft.Capitalize(10, 14);
            Console.WriteLine(ft);

            var bft = new BetterFormattedText("This is a brave new world.");

            bft.GetRange(10, 14).Capitalize = true;
            Console.WriteLine(bft);
        }