-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 remove the readonly
from JOptions.Default?
#16506
Comments
Hi @MikeAlhayek what do you think of this question please? |
IIRC, in STJ, the |
I've looked at it and it does seem to be the case that it's not a matter of declaring it readonly in oc, perhaps we could open up an Action delegate to allow for additional tweaking logic to be added before the program is initialized |
Why do you want to add more converters to the default options that OC uses? You can create your own Default options and use that instead if needed. |
Can you provide a scenario where the Default options are used by Orchard and you need another converter than the existing ones? That would either show that OC is missing a converted, or that it should not use Default there. |
For example, this issue: #16288 Of course, for issue #16288 , we can fix the error in it by adjusting the script in the workflow to achieve that |
It seems that this issue didn't really move for quite a while despite us asking the author for further feedback. Is this something you'd like to revisit any time soon or should we close? Please reply. |
Close it for now and reintroduce it the next time we have a problem |
I would like to make some custom changes to JOptions.Default before run AddOrchardCms,
for example:
But because it's read-only, it gets the following error.
Inevitably custom code will contain types that need to implement custom serialisation, but
readonly
restricts this.The text was updated successfully, but these errors were encountered: