StringExtensionsParseDecimalBytes Method

Parses separated decimal bytes from a string.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.0.0
C#
public static byte[] ParseDecimalBytes(
	this string s,
	string separator
)

Parameters

s  String
A string containing delimited decimal integer numbers.
separator  String
A separator delimiting the values.

Return Value

Byte
A byte array containing the decimal values as bytes.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. 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

ArgumentNullExceptions is .
ArgumentExceptionseparator is or empty.
FormatExceptions is not of the correct format.
OverflowExceptionA value in s does not fit in the range of a byte value.

See Also