StringExtensionsParseDecimalBytes Method

Parses separated decimal bytes from a string.


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


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

Return Value

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).


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