So if i have code like this:
public static void GetPointer(int[] array)
{
fixed(void* pointer = array)
{
}
}
I can take a pointer of unknown type of an int array very easy. But what if i want to take a pointer of an array of unknown type? How can i do it?
public static void GetPointer(Array array)
{
fixed(void* pointer = array)
{
}
}
Doesn't seems to work.