I\'m calling a function from a native DLL which returns a char* pointer, how can I convert the returned pointer to a string ? I tried :
char*
char* c = f
public static void Main(string[] args) { var charArray = new[] {'t', 'e', 's', 't'}; fixed (char* charPointer = charArray) { var charString = new string(charPointer); } }