Ejemplo n.º 1
0
        public string FromBitStream(IBitStream stream)
        {
            var bytes = stream.ToByteArray();

            // Replace non printable characters except newline
            return(Regex.Replace(_encoding.GetString(bytes), @"[\p{C}-[\r\n]]+", "?"));
        }