ByteArrayExtensionsToDecimalValuesString(Byte, String) Method

Converts the byte array to string of decimal values.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.2.0
C#
public static string ToDecimalValuesString(
	this byte[] bytes,
	string separator = ", "
)

Parameters

bytes  Byte
The byte array to convert.
separator  String  (Optional)
The separator to use between the decimal numbers. This parameter is optional.
Default value: ", " (comma and space)

Return Value

String
The string representation, in decimal, of the contents of bytes.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Byte. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionbytes or separator is
ArgumentExceptionseparator is empty or contains decimal digits

See Also