Click here to Skip to main content
15,506,981 members

Comments by Amit Patel1985 (Top 13 by date)

Amit Patel1985 1-Nov-21 10:06am View    
but this require a looping I am wondering is it possible without loop.
Amit Patel1985 28-Oct-21 11:58am View    
JArray rssTitle = (JArray)organization_memberships["organization_memberships"];

IEnumerable<jtoken> pricyProducts = rssTitle.SelectTokens("organization_id"); tried this but I need to loop it is it possible without looping
Amit Patel1985 28-Oct-21 7:48am View    
JObject o1 = JObject.Parse(File.ReadAllText(@"C:\Users\adminampa\source\repos\ConsoleApp4\orgMembership.json"));

JArray rssTitle = (JArray)o1["organization_memberships"];

IEnumerable<jtoken> pricyProducts = rssTitle.SelectTokens("organization_id");

int count = rssTitle.Count;

IList<string> storeNames = o1.SelectToken("organization_memberships").Select(s => (string)s).ToList();

I have tried above option
Amit Patel1985 28-Oct-21 7:47am View    
Deleted
JObject o1 = JObject.Parse(File.ReadAllText(@"C:\Users\adminampa\source\repos\ConsoleApp4\orgMembership.json"));

JArray rssTitle = (JArray)o1["organization_memberships"];

IEnumerable<jtoken> pricyProducts = rssTitle.SelectTokens("organization_id");

int count = rssTitle.Count;

IList<string> storeNames = o1.SelectToken("organization_memberships").Select(s => (string)s).ToList();

I have tried above option while trying to select all the node
Amit Patel1985 16-Jul-19 10:22am View    
Hello Richard,

tried this I am not able to solve using above xml example.
tried below code

IEnumerable<string> partNos = from item in configuratoinFile.Descendants("EnvironmentDetails")
select (string)item.Attribute("add");

Thanks,
amit