Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

how to convert an object of Item to an dictionary not idictionary in c#

$
0
0

My code 

Dictionary<string, string> FD = null;

foreach (object objarrayItem in ((ArrayList)innerHashPS[itemNamePS]))
{
// FD = (from x in objarrayItem.GetType().GetProperties() select x).ToDictionary(x => x.Name, x => (x.GetGetMethod().Invoke(objarrayItem, null).ToString()));

This is throwing error.

and i want to store or convert it to ana global dictinary not idictionary.how it will do?



}


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>