samedi 15 mai 2021

Predicate member referencing

Compiler converts LINQ function predicates into FieldInfo with names "Predicate`1". I want to analyze these FieldInfo to see which members, if any, are referenced. For example the predicate below uses the user-defined method "ArchName":

list.FindAll(m => !m.ArchName().Contains("<>c"))

I'm not aware that FieldInfo has any related MethodInfo members. What might be done?

Thanks in advance!





Aucun commentaire:

Enregistrer un commentaire