I am currently using FieldInfo.GetValue
and FieldInfo.SetValue
quite a lot in my programm, which is significantly slowing up my programm.
For PropertyInfo
I use the GetValueGetter
and GetValueSetter
methods so I only use reflection once for a given type. For the FieldInfo
, the methods don't exist.
What is the suggested approach for FieldInfo
?
Aucun commentaire:
Enregistrer un commentaire