public void Write(Pattern pattern)
        {
            var squares = pattern.Squares;

            for (var j = 0; j < squares.GetLength(0); ++j)
            {
                for (var i = 0; i < squares.GetLength(1); ++i)
                {
                    _characterWriter.Write(squares[j, i]);
                }
                _characterWriter.WriteLine();
            }
        }
Esempio n. 2
0
		public bool Send(ICharacterWriter writer)
		{
			return writer.WriteLine(this.Protocol + " " + this.Status) &&
			(headers.IsNull() || this.headers.All(header => writer.WriteLine(header.Key + ": " + header.Value))) &&
			writer.WriteLine() && writer.Flush();
		}
Esempio n. 3
0
 public void WriteLine()
 {
     _innerWriter.WriteLine();
 }