Click or drag to resize

ValueConverterGetBytes Method (String, Encoding)

Gets the bytes representing the specified value.

Namespace:  SampSharp.Core.Communication
Assembly:  SampSharp.Core (in SampSharp.Core.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static byte[] GetBytes(
	string value,
	Encoding encoding
)

Parameters

value
Type: SystemString
The value.
encoding
Type: System.TextEncoding
The encoding to use.

Return Value

Type: Byte
The bytes representing the specified value
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if value is null.
See Also