Exemplo n.º 1
0
        public void Copy()
        {
            char character;

            while ((character = _source.GetChar()) != '\n')
            {
                _destination.SetChar(character);
            }
        }
Exemplo n.º 2
0
        public void Copy()
        {
            var c = _source.GetChar();

            if (c == '\n')
            {
                return;
            }
            _destination.SetChar(c);

            Copy();
        }
Exemplo n.º 3
0
        public void Copy()
        {
            char character = '\0';

            while (character != '\n')
            {
                character = source.GetChar();
                if (character != '\n')
                {
                    desti.SetChar(character);
                }
            }
        }