Axiom.Serialization.Serializer.ReadString C# (CSharp) Метод

ReadString() защищенный Метод

Reads from the stream up to the specified delimiter character.
protected ReadString ( BinaryReader reader, char delimiter ) : string
reader System.IO.BinaryReader
delimiter char The character that signals the end of the string.
Результат string
	    protected string ReadString( BinaryReader reader, char delimiter )
		{
			StringBuilder sb = new StringBuilder();

			char c;

			// sift through each character until we hit the delimiter
			while ( ( c = reader.ReadChar() ) != delimiter )
			{
				sb.Append( c );
			}

			// return the accumulated string
			return sb.ToString();
		}

Same methods

Serializer::ReadString ( BinaryReader reader ) : string