-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add support for System.Collections.Immutable #11
Comments
nice suggestion! do you know if System.Xaml supports immutable collections? I ask as I'm not sure the best way to implement this. E.g. should we look for the Add() method and if it returns the same collection instance, set it back to the property? Or is it that it builds up an internal list and creates a new instance of the immutable when setting the property.. Probably a good idea to add some tests to see what it does and try to emulate that somehow. |
I have found this solution used in |
ah ok, that makes it easy then as we can then come up with our own strategy to implement this. Thanks for the link I'll take a look. |
The I've been trying to find solution using built-in Xaml mechanisms from But this is as fat I've got. And it does not work yet when properties are of |
Now supported! |
I'd just like to say that this thread has totally influenced me and led me to the light of immutable collections. I am starting to take the dive and require them for my design going forward. Just thought I would share! 😎 |
Sample model:
https://github.com/wieslawsoltes/XamlDemo/blob/immutable/XamlDemo/Model.cs
Sample Xaml:
https://github.com/wieslawsoltes/XamlDemo/blob/immutable/XamlDemo/Project.caml
The text was updated successfully, but these errors were encountered: