3

I serialized lambda expressions in C# before. Now I wanna use F# instead of C# for serialization and deserialization.

I heard F# is better in this area. Is it true? How can I do that with F#?

I’d appreciate even if you just suggested a correlated link.

LSerni
2,46117 silver badges21 bronze badges
asked Jun 25, 2013 at 11:22
1
  • can you collect all possible lambdas in a single array (statically)? if so just serialize the index in that array Commented Jun 25, 2013 at 11:39

1 Answer 1

3

I heard F# is act better in this area. Is it true?

Yes, the F# Expr type is marked as [Serializable], so you can use for example binary serialization with it. On the other hand the C# (and VB) Expression is not [Serializable], so to serialize it, you would either need to write quite a lot of code yourself, or use a library for that.

answered Jun 25, 2013 at 12:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.