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

FluidValue.ToXXXValue() methods should take TemplateContext as an argument #633

Open
sebastienros opened this issue Mar 21, 2024 · 0 comments
Milestone

Comments

@sebastienros
Copy link
Owner

sebastienros commented Mar 21, 2024

        public abstract bool ToBooleanValue();
        public abstract decimal ToNumberValue();
        public abstract string ToStringValue();
        public abstract object ToObjectValue();

This way the evaluation of some values could be lazy, or use dependency injection (IServiceProvider would be passed when creating the FluidValue).

Or the conversions could use some properties of the context.

Right now only member accessors are lazy.

@sebastienros sebastienros added this to the 3.0 milestone Mar 21, 2024
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

No branches or pull requests

1 participant