I've been looking into ways to mitigate the performance pains of using reflection's .GetValue()
and .SetValue()
methods. I've discovered some really awesome ways to do it using expression trees, but came upon this answer to a question here:
It contains a link to this page:
To view the source code, you have to scroll down and click the very inconspicuous expand
link below the The code of the helper
header. In looking at the code, you will see things like this:
Func<tobject ,="" tvalue="">
What is =""
? No matter what I do, I cannot get any variation of this syntax to work. The answer has 6 votes, so I can only assume it's deserving of them.
Aucun commentaire:
Enregistrer un commentaire