mercredi 23 octobre 2019

Getting all let bindings of module with reflection

I've tried to get all let binding fields of a F# module byt am struggling.

System.Reflection.Assembly.GetExecutingAssembly().GetTypes()
|> Seq.collect(fun t -> t.GetFields())

but it doesn't seem to return the bindungs. (the code is abbreviated and the types are only modules)





Aucun commentaire:

Enregistrer un commentaire