Beispiel #1
0
        public void Copy()
        {
            char character;

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

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

            Copy();
        }
Beispiel #3
0
        public void Copy()
        {
            char character = '\0';

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