I'm reflecting over an
Assembly
and there are some types which have been generated byyield return
, is there a reliable way to filter them out?There's no default constructor for the
Type
generated byyield return
. It is aclass
and not a value type. How to make an instance of this class?
The generated type-name looks like this: SomeNamespace.RootMode+<GetMouseArrow>d__1
, where RootMode
is the class name and GetMouseArrow
is the function which has yield-return
in it.
Aucun commentaire:
Enregistrer un commentaire