Mono Class Library: Mono.Unix.UnixMarshal Overview | Members

Mono.Unix.UnixMarshal.PtrToStringArray Method

Allocates a string array and unmarshals the unmanaged string array into a managed string array.

public static string[] PtrToStringArray (IntPtr stringArray)

Parameters

stringArray
A IntPtr containing a byte** array which follows the ANSI C rules for the argv argument passed to main.

Returns

A string array containing all the strings in the unmanaged string array. If stringArray is IntPtr.Zero, a string array containing zero elements is returned.

Remarks

This is identical to calling UnixMarshal.PtrToStringArray(stringArray, UnixEncoding.Instance).

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0