2017-03-28 78 views
-1

我有代码从一些内置库查询集合对象

PwCollection Props = PwSrv.GetItem(row["Name"].ToString()).GetProperties();//.AsQueryable(); 
                foreach (PwItem Prop in Props) 
                { 
                 Console.WriteLine(Prop.Name); 
                 Console.WriteLine(Prop.Description); 
                 Console.WriteLine(Prop.Value); 
                } 

获得的数据,但不是循环每条记录,我想在道具来查询并获得所需的值,这些都是我有到道具收集属性。

enter image description here

请帮我查询到该集合。

感谢 迪利普

+0

不知道关于你的图书馆什么也没有办法,我们可以帮助理清如何调用它的查询资源... –

回答

1

感谢您的时间,我能解决它

DBValue = lpropertycollection.GetProperties().OfType<PwItem>().Where(t => t.Name == row["Name"] + DBColName).FirstOrDefault().Value.ToString();