Skip to content
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

Added HandleAsImmutableObject attribute #743

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

exyi
Copy link
Member

@exyi exyi commented Aug 22, 2019

The attribute convinces the dotvvm compiler, that it can only emit a
reference to this object as it can be safely shared accros all controls
in the application lifetime.

One application is to set a custom object by s server-side style.

Note that the attribute name is so ugly on purpose. I don't really want it to be well discoverable, as would just complain that the serializer cannot handle immutable object even though they are marked by dotvvm (compiler) attribute...

cc @MichalTichy, this should solve your issue

The attribute convinces the dotvvm compiler, that it can only emit a
reference to this object as it can be safely shared accros all controls
in the application lifetime.

One application is to set a custom object by s server-side style.
@tomasherceg tomasherceg merged commit 7b37103 into master Aug 27, 2019
@tomasherceg tomasherceg deleted the compiler-handleasimmutableobject branch August 27, 2019 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants