BooksSample.ByteArrayExtension.StringOutput C# (CSharp) Method

StringOutput() public static method

public static StringOutput ( this data ) : string
data this
return string
        public static string StringOutput(this byte[] data)
        {
            var sb = new StringBuilder();
            foreach (byte b in data)
            {
                sb.Append($"{b}.");
            }
            return sb.ToString();
        }
    }
ByteArrayExtension