public static string ReadString(BinaryReader reader)
{
List<byte> sb = new List<byte>();
byte ch;
while ((ch = reader.ReadByte()) != 0)
sb.Add(ch);
byte[] buffer = sb.ToArray();
return Encoding.UTF8.GetString(buffer, 0, buffer.Length);
}
public static bool IsNullOrEmpty(String str)