Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Using List and Linq withing javascript

$
0
0
Hello,

I am wondering if we are allowed to used linq functions like List.Exists within javascript.

Currently, I have this line
if (child.Name == "tr" && accountList.Exists(p => p == child.ChildNodes[1].InnerText)) 
{ }
But it's giving me a syntax error. accountList is passed in through
 engine.Script[key] = value; 
where key = "accountList" and the value is a List<string>

Is this something I can do, or do I have to do things the old fashioned way?

Viewing all articles
Browse latest Browse all 2297

Trending Articles



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