Having this kotlin function: ```data class User( ...
# kotlin-native
b
Having this kotlin function:
Copy code
data class User(
        val id: String,
        val name: String,
        val email: String
    )
    
    fun getUser(): COpaquePointer {
        return StableRef.create(User("1", "test", "test@test.com")).asCPointer()
    }
And this binding:
Copy code
[DllImport("test.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public delegate* unmanaged[Cdecl]<void*> getUser;
Is there any way to get the
User
class in C# with the
COpaquePointer
?