mardi 16 mars 2021

F# how to specify when creating union case value what value to set to which field?

I have a dictionary where the key is the name of the field, and the value is this field value. Is it possible to somehow explicitly indicate to which field what value to assign using this dictionary? Or is the only way to stick to the sequence of field declarations when passing the second argument to the FSharpValue.MakeUnion?





Aucun commentaire:

Enregistrer un commentaire