src/Shared/EntityFramework/Core/Query/InternalTrees/VarVec.cs
// <summary>
// Walk through the input varVec, replace any vars that have been "renamed" based
// on the input varMap, and return the new VarVec
// </summary>
// <param name="varMap"> dictionary of renamed vars </param>
// <returns> a new VarVec </returns>
Walk through the input varVec, replace any vars that have been "renamed" based
on the input varMap, and return the new VarVec
Walk through the input varVec replace any vars that have been " renamed " based on the input varMap and return the new VarVec
internal VarVec Remap(Dictionary<Var, Var> varMap)
        {
            var newVec = m_command.CreateVarVec();
            foreach (var v in this)
            {
                Var newVar;
                if (!varMap.TryGetValue(v, out newVar))
                {
                    newVar = v;
                }
                newVec.Set(newVar);
            }
            return newVec;
        }
internal VarVec Remap ( Dictionary < Var , Var > varMap ) { var newVec = m_command . CreateVarVec ( ) ; foreach ( var v in this ) { Var newVar ; if ( ! varMap . TryGetValue ( v , out newVar ) ) { newVar = v ; } newVec . Set ( newVar ) ; } return newVec ; }
Walk through the input varVec, replace any vars that have been "renamed" based
on the input varMap, and return the new VarVec
Walk through the input varVec replace any vars that have been " renamed " based on the input varMap and return the new VarVec
a new VarVec
a new VarVec
varMap
Dictionary<Var, Var>
dictionary of renamed vars
dictionary of renamed vars