score:1

string[] filter(xrefresponse mappedvaluesresponse, string[] sourcedestinationvalue)
    {
        var allpairs = mappedvaluesresponse.sourcevaluesfield.zip(mappedvaluesresponse.mappedvaluesfield, (source, mapped) => new { source = source, mapped = mapped });
        var matchedpairs = allpairs.where(pair => array.indexof(sourcedestinationvalue, pair.source) >= 0);
        var result = matchedpairs.select(pair => pair.mapped);
        return result.toarray();
    }

Related Query

More Query from same tag