Пример #1
0
        public void Copy()
        {
            var character = _source.ReadChar();

            while (character != '\n')
            {
                _destination.WriteCharacter(character);
                character = _source.ReadChar();
            }
        }
Пример #2
0
        public void Copy()
        {
            //initialise with a default character
            char temp = _source.ReadChar();

            while (temp != '\n')
            {
                _destination.WriteCharacter(temp);
                temp = _source.ReadChar();
            }
        }