This message was deleted.
# dotnet
s
This message was deleted.
e
https://github.com/pulumi/pulumi/pull/7899 is the context with all the gory detail
w
That's a lot to take in, so rather than try to understand it all I'll just ask some dumb questions... • is this a problem to be solved at compile time or run time? • if codegen is used to create one type, can't it be used to create the other?
e
Both compile-time and runtime solutions are acceptable here
Codegen doesn’t seem to be smart enough at the moment to be able to create a function that auto-converts between the two types. So I was hoping that runtime can.
The runtime is, it seems, capable of serializing both types to the same underlying structure.
I’d prefer a runtime solution as not to generate too much converter code.