Skip to content

I was just wondering why the choice of Expressions to implement serialize? #258

Closed Answered by dstelljes
IOnlyFetchBranches asked this question in Q&A
Discussion options

You must be logged in to vote

Expressions are indeed used for performance reasons. Reflection is relatively slow; by building serializers as expression trees, the serializer builder is able to do the expensive reflection work once up front and return a delegate that performs as well as a hand-written serializer.

If you can provide a full stack trace, we may be able to help determine the cause of your issue.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@IOnlyFetchBranches
Comment options

Answer selected by IOnlyFetchBranches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants