namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter21.Listing21_18
{
    using System;

    public class Program
    {
        public static void Main()
        {
            string text = "S5280ft";
            Console.Write("{0} = ", text);
            unsafe // Wymaga opcji /unsafe.
            {
                fixed(char* pText = text)
                {
                    pText[1] = 'm';
                    pText[2] = 'i';
                    pText[3] = 'l';
                    pText[4] = 'e';
                    pText[5] = ' ';
                    pText[6] = ' ';
                }
            }
            Console.WriteLine(text);
        }
    }
}