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

Latest Images

Trending Articles





Latest Images