Converts C# string array to an array of zero terminated C strings.

Namespace: CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Shared Function ConvertToMultiStringByteArray( _ 
ByVal itemList As String() _ 
) As Byte()
This language is not supported or no code example is available.
public static byte[] ConvertToMultiStringByteArray( 
string[] itemList 
)
This language is not supported or no code example is available.
public:  
static array< Byte >^ ConvertToMultiStringByteArray( 
array< String^ >^ itemList 
)
This language is not supported or no code example is available.
public static function ConvertToMultiStringByteArray( 
itemList : String[] 
) : byte[];
This language is not supported or no code example is available.

Parameters

itemList
Type: string[]

Array of C# strings.

Return Value

Type: byte[]

A byte array with zero-terminated C-style strings.

This is a helper method for using multi-zero-terminated C-strings. SCardListReaders uses this buffer structure for its mszGroups string parameter. This concatenate all given strings, separated by zero-byte characters. The string must ultimately be terminated by two zero-byte characters. One to indicate the end of a string. The second to indicate the end of the string array.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0