-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use a custom pickler for System.Collections.Immutable.ImmutableList
?
#128
Comments
You need to provide the generic type parameter:
|
|
Hi @marklam , I implemented a version supporting type with generic parameter. And I push it here (I compiled FsPickler with .net 9) And the picklerFactory register code should be declared with a static method... Even though .NET 9 is likely to be the last version for FsPickler, as BinaryFormatter is no longer supported—a tear of the times—if it's still useful, please take it.
And the output result:
|
By the way, FsPickler9 doesn't need customized pickler to support ImmutableList... |
Thanks for the suggestions! |
I fixed some issues commit And all these styles are supported now:
The result would be
Please replace the code in resolver variable
And
The result would be
Also works!! |
PS. to run the unit tests of fspickler, please build fspickler9 with release profile... Not sure why these codes work
But unit test failed (so as others...)
|
Here's what I've tried:
But the ImmutableList doesn't seem to trigger my serializer:
The text was updated successfully, but these errors were encountered: