oleg-shilo / cs-script

C# scripting platform
http://www.cs-script.net
MIT License
1.62k stars 235 forks source link

Define a custom algorithm how to expand script code. #311

Closed rzamponiAtIgt closed 1 year ago

rzamponiAtIgt commented 1 year ago

310 implementation.

The EvaluatorConfig.ExpandStatementAlgorithm directly sets the property in CoreExtensions. I am not sure where else to place this, as a user might want to have this immediately set for all following calls. CoreExtensions.Expand will always fall back to Environment.ExpandEnvironmentVariables.

oleg-shilo commented 1 year ago

Thank you, your PR does not require any further changes. I think you found the most appropriate entry point for this API - EvaluatorConfig.