2017-03-28 79 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();