Linq的值在Array中IEnumerableperiods=newstring[]{"ABC","JKD","223A"};varsomeData=frompinreturnsfromdinp.ReturnDetwherep.Year>2009whered.Period如何在period数组中选择包含d.periods的值?使用包含方法。以上就是C#学习教程:Linq中值在Array中的共享。如果对你有用,需要进一步了解C#学习教程,希望大家多多关注——varsomeData=frompinreturnsfromdinp。ReturnDet其中p.Year>2009其中periods.Contains(d.Period);varsomeData=frompinreturnsfromdinp.ReturnDetwherep.Year>2009whereperiods.Contains(d.Period)本文来自网络收藏,不代表立场,如涉及侵权请点击有权联系管理员删除。如需转载请注明出处:
