Converting similar class objects into each other.

Hey, I would like to convert different Complex data containers into each other. The target class has a constructor that takes the complex data in form of an Array. The only way I can acess the complex data from my original class object, is to get a fixed pointer to the first element of the double data in form of a double. I want to create the double to an double[] array, because this is the only way I can create the target class object.

Thank you for your responses, I hope I described my problem clearly.

TL:DR: I got an double* and want to convert it to a Double[]. How can I do this, without copying every element individually?

by Hate4Fun via /r/csharp

Leave a Reply