private void AddCollectionContextSpecialVariables() { foreach (var keyValuePair in ContextCollection.GetVariables()) { AddVariable(keyValuePair.Key, (scopeData, context) => { if (context is ContextCollection coll) { return(scopeData.ParserOptions.CreateContextObject(keyValuePair.Key, keyValuePair.Value(coll), context)); } return(null); }); } }